Side navigation
#8434 closed bug (invalid)
Opened March 03, 2011 05:19PM UTC
Closed March 14, 2011 02:38PM UTC
Selector not working with XML string in IE
Reported by: | matt.probstfeld@gmail.com | 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
JQuery Reference:
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">..."]
Attachments (0)
Change History (1)
Changed March 14, 2011 02:38PM UTC by comment:1
component: | unfiled → core |
---|---|
priority: | undecided → low |
resolution: | → invalid |
status: | new → closed |
Please look at: http://api.jquery.com/jQuery/#jQuery2
The signature description indicates that xml is not supported the way you are using it.