Bug Tracker

Opened 8 years ago

Closed 8 years ago

#8434 closed bug (invalid)

Selector not working with XML string in IE

Reported by: matt.probstfeld@… Owned by:
Priority: low Milestone: 1.next
Component: core Version: 1.5
Keywords: Cc:
Blocked by: Blocking:

Description

IE does not return the entity nodes when using the jQuery( selector, [ context ] ). It will return the nodes if I don't include the context and use closest() instead.

Example in JS fiddle http://jsfiddle.net/ZuZpt/1/

JQuery Reference: http://api.jquery.com/jQuery/

Data:

<Entities>
   <Entity Key="Customers">
      <ExtraData></ExtraData>
      <MultipleMatches />
   </Entity>
</Entities>

Code

// Works in FF, Chrome and not in IE
$('Entity', rawXmlString)

// Works in IE Only
$(rawXmlString).closest('Entity')

// Does not work in FF, Chrome, IE
$(rawXmlString).find('Entity')

Desired Result:

["<Entity Key="Customers">..."]

Change History (1)

comment:1 Changed 8 years ago by Rick Waldron

Component: unfiledcore
Priority: undecidedlow
Resolution: invalid
Status: newclosed

Please look at: http://api.jquery.com/jQuery/#jQuery2

The signature description indicates that xml is not supported the way you are using it.

Note: See TracTickets for help on using tickets.