Bug Tracker

Opened 15 years ago

Closed 14 years ago

#3371 closed bug (invalid)

Selectors break in IE6 with XML strings

Reported by: Liquidice Owned by:
Priority: minor Milestone:
Component: core Version: 1.2.6
Keywords: Selectors IE6 IE Internet explorer load Cc:
Blocked by: Blocking:

Description

I came across this issue because I was using $.load with a selector like 'root > li', and it worked on FF, Safari but on IE6 it didn't. (I haven't tested IE7.)

So I narrowed it down to selectors and made a nice test case for you guys using basically the same method .load uses to insert html to the target element.

It seems to boil down to this, given a string s = <root><span><b>Examplicious</b></span></root>

selector 'root' will be found. selector 'b' will be found. selector 'root > span' will not be found because it names two elements, one which isn't a valid HTML element.

Check the attached test case in different browsers for more examples.

Attachments (1)

IE selector issue.zip (32.8 KB) - added by Liquidice 15 years ago.
selector test case

Download all attachments as: .zip

Change History (2)

Changed 15 years ago by Liquidice

Attachment: IE selector issue.zip added

selector test case

comment:1 Changed 14 years ago by dmethvin

Resolution: invalid
Status: newclosed

jQuery doesn't have a built-in XML parser.

http://markmail.org/message/i2kytvrcn7cvdegn

Note: See TracTickets for help on using tickets.