Bug Tracker

Ticket #2221 (closed bug: invalid)

Opened 10 months ago

Last modified 4 months ago

append() functions problem IE6

Reported by: cardil Assigned to: anonymous
Type: bug Priority: major
Milestone: 1.2.2 Component: core
Version: 1.2.2 Keywords: append apendTo
Cc: cardil Needs: Patch

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

2221.html (0.6 kB) - added by nathanhammond 4 months ago.
Test Case

Change History

Changed 4 months ago by nathanhammond

Test Case

Changed 4 months ago by nathanhammond

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 4 months ago by flesler

  • cc set to cardil
  • status changed from new to closed
  • resolution set to invalid

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