Bug Tracker

Opened 12 years ago

Closed 12 years ago

#2221 closed bug (invalid)

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

Attachments (1)

2221.html (627 bytes) - added by nathanhammond 12 years ago.
Test Case

Download all attachments as: .zip

Change History (3)

Changed 12 years ago by nathanhammond

Attachment: 2221.html added

Test Case

comment:1 Changed 12 years ago by nathanhammon

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).

comment:2 Changed 12 years ago by flesler

Cc: cardil added
Resolution: invalid
Status: newclosed

@cardil

Reopen with a valid test case that shows the error for the second case. Fourth is indeed invalid.

Note: See TracTickets for help on using tickets.