Opened 15 years ago
Closed 15 years ago
#1940 closed bug (invalid)
wrap method doesn't work in FireFox (2.0.0.9) when pass parameter as string ...
Reported by: | romitch | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.2.2 |
Component: | core | Version: | 1.2.1 |
Keywords: | firefox wrap | Cc: | |
Blocked by: | Blocking: |
Description
When passing parameter to $('..').wrap as string (e.g. "<div ..> </div>" ) - causing error in FireFox....
Works fine in IE7 See attached test html page for details....
Attachments (1)
Change History (3)
Changed 15 years ago by
Attachment: | firefox_wrap_bug.html added |
---|
comment:1 Changed 15 years ago by
I've just realized that the problem is in the space between opening and closing tags : $("#testMe2").addClass("innerDiv").wrap("<div class='outerDiv'> </div>");
.. .wrap("<div class='outerDiv'></div>"); works fine
I don't know how to delete this...
comment:2 Changed 15 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
As you said, wrap doesn't support text nodes and that space counts as a text node.
Note: See
TracTickets for help on using
tickets.
just run in firefox and ie and see the difference