Side navigation
#2221 closed bug (invalid)
Opened January 23, 2008 01:42PM UTC
Closed August 19, 2008 12:39PM UTC
append() functions problem IE6
Reported by: | cardil | Owned by: | |
---|---|---|---|
Priority: | major | Milestone: | 1.2.2 |
Component: | core | Version: | 1.2.2 |
Keywords: | append apendTo | Cc: | cardil |
Blocked by: | Blocking: |
Description
This works fine:
$("p").append("test");
This will crash:
$("p").append(" test");
This works fine:
$("<span>test string</span>").appendTo("p");
This will do nothing (but no critical error):
$("test string").appendTo("p");
I think that problem may be that text node doesn't have nodeName atributte so script fails then in IE6
The first three scenarios I could not get to fail. Tested in all browsers, and especially in IE6 (Version 6.0.2900.2180.xpsp_sp2_gdr.070227-2254, native, not in a VM, not concurrently installed with any other version of IE). The fourth scenario is not a valid call to the API at this point (treated as a selector, not as a text node).