jquery-create-event
jquery-create-event copied to clipboard
Overridden jquery.html() function breaks original behavior
related to https://github.com/ehynds/jquery-create-event/issues/closed#issue/1
the overridden $.html behaves incorrectly when passed only text. $( 'div' ).html( 'foo' ) should make '
foo
', but instead it...
(using jquery.create.js 1.3) throws an error, as reported before
(using jquery.create.js 1.4) silently ignores the content and clears the div (i.e. empty string behavior)
here is some simple code to reproduce: