jquery-create-event icon indicating copy to clipboard operation
jquery-create-event copied to clipboard

Overridden jquery.html() function breaks original behavior

Open rainbow-alex opened this issue 13 years ago • 1 comments

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:

rainbow-alex avatar Feb 12 '11 01:02 rainbow-alex