JSFiddle - React, Tailwind, and code Playground

by tdecs

HTML

<input type="text" value="testing" size="60" />

JavaScript

// trying to create an input with size attr
$('<input>', {
    type: 'text',
    value: 'testing2',
    size: 60
}).appendTo(document.body);
    
/*

    // Line 2289 jquery.js
    
    if ( pass && jQuery.isFunction( jQuery.fn[ name ] ) ) {
        // *
        return jQuery( elem )[ name ]( value );
    }
    
   // * calls jQuery.size method instead of setting the input attribute

*/