Skip to main content

Bug Tracker

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

Attachments (1)
  • 2221.html (0.6 KB) - added by nathanhammond August 18, 2008 06:55AM UTC.

    Test Case

Change History (2)

Changed August 18, 2008 07:00AM UTC by nathanhammon comment:1

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

Changed August 19, 2008 12:39PM UTC by flesler comment:2

cc: → cardil
resolution: → invalid
status: newclosed

@cardil

Reopen with a valid test case that shows the error for the second case.

Fourth is indeed invalid.