Skip to main content

Bug Tracker

Side navigation

#782 closed bug (invalid)

Opened January 11, 2007 03:18PM UTC

Closed January 11, 2007 05:18PM UTC

Last modified March 15, 2012 06:34PM UTC

$('body').append(html) breaking within a plugin

Reported by: remy@ihatemusic.com Owned by:
Priority: major Milestone:
Component: core Version:
Keywords: Cc:
Blocked by: Blocking:
Description

I can't replicate this using different code (i.e. writing a different type of plugin), but a plugin I've written attaches a hidden div to the body tag, but fails with the new jQuery version.

Here is an example URL with the problem (tested in Safari + Firefox on Mac):

http://leftlogic.com/tests/text_grow.html

And the plugin:

http://leftlogic.com/jquery/textgrow.js

Breaks on 'var c = jQuery('body').append(html);'

Let me know if there is anything I can do or if more info is needed.

Thanks.

Attachments (0)
Change History (2)

Changed January 11, 2007 03:19PM UTC by remy@ihatemu comment:1

Sorry - didn't mean to leave it as major - I doubt if it's major!

Changed January 11, 2007 05:18PM UTC by brandon comment:2

resolution: → invalid
status: newclosed

Appending to body works fine. The actual error is caused by the leading underscore in the ID you are adding the div you are appending to the body. If you just remove the leading underscore, this will solve the error.

Feel free to reopen if you come across any other issues.