Side navigation
#12260 closed bug (invalid)
Opened August 10, 2012 11:51PM UTC
Closed August 28, 2012 08:35AM UTC
Last modified March 14, 2013 03:36AM UTC
selector on xml file breaks in internet explorer (all jquery versions)
Reported by: | caruga | Owned by: | caruga |
---|---|---|---|
Priority: | undecided | Milestone: | None |
Component: | unfiled | Version: | 1.8.0 |
Keywords: | Cc: | ||
Blocked by: | Blocking: |
Description
Hi,
You can find my description of this bug @ https://forum.jquery.com/topic/this-line-fails-in-internet-explorer-but-not-firefox-or-chrome#14737000003544309
In brief, a certain xml file will fail to be read with the following selector:
"idea:not(idea idea)"
in internet explorer only, causing the code to halt at that point with
"Object doesn't support this property or method
jquery-1.7.2.js, line 5276 character 6"
If the xml file is a little less deep than the one I quoted in that link, the error won't occur.
Attachments (0)
Change History (6)
Changed August 13, 2012 07:53AM UTC by comment:1
Changed August 13, 2012 03:37PM UTC by comment:2
owner: | → caruga |
---|---|
status: | new → pending |
Thanks for taking the time to contribute to the jQuery project! Please provide a complete reduced test case on jsFiddle to help us assess your ticket.
Additionally, be sure to test against the jQuery Edge version to ensure the issue still exists. To get you started, use this boilerplate: http://jsfiddle.net/FrKyN/. Open the link and click to "Fork" (in the top menu) to get started.
Changed August 28, 2012 08:35AM UTC by comment:3
resolution: | → invalid |
---|---|
status: | pending → closed |
Because we get so many tickets, we often need to return them to the initial reporter for more information. If that person does not reply within 14 days, the ticket will automatically be closed, and that has happened in this case. If you still are interested in pursuing this issue, feel free to add a comment with the requested information and we will be happy to reopen the ticket if it is still valid. Thanks!
Changed January 30, 2013 07:46AM UTC by comment:4
This issue still exists, I am parsing a XML file for a WMS server.
$.get(capabilitiesUrl, function (data) { $("WMT_MS_Capabilities Capability Layer Layer Name", $(data)).each(function (i) {
Will throw the error mentioned above.
The work around provided in this thread (https://forum.jquery.com/topic/this-line-fails-in-internet-explorer-but-not-firefox-or-chrome#14737000003544309) works as expected
$.ajax({ type: "GET", url: capabilitiesUrl, dataType: "text", cache: false, success: function (text) { var data = $($.parseXML(text)); $("WMT_MS_Capabilities Capability Layer Layer Name", $(data)).each(function (i) {
This is probably more a bug with Internet Explorer not treating the XML as a document but jQuery support should probably work in IE9 also.
Changed March 14, 2013 01:02AM UTC by comment:5
Hi,
I am experiencing this problem in IE8 only. I am SOAP service and the payload is XML. IE9, Chrome and Firefox are all fine. I tried changing the data type to text, but it still fails. Is there a resolution to this problem? I do not have my cache set to false. Is this required?
Thanks
Changed March 14, 2013 03:36AM UTC by comment:6
Hi,
I resolved my problem by simplifying my jQuery selector. Instead of doing
var myelement2 = $(xml).find("MyElement1 MyElement2"),
I am doing
var myelement1 = $(xml).find("MyElement1");
var myelement2 = $(myelement1).find("MyElement2");
This resolved the exception and jQuery finds the elements as expected.
Thanks
Replying to [comment:5 anonymous]:
Hi, I am experiencing this problem in IE8 only. I am SOAP service and the payload is XML. IE9, Chrome and Firefox are all fine. I tried changing the data type to text, but it still fails. Is there a resolution to this problem? I do not have my cache set to false. Is this required? Thanks
IE 9.
Object doesn't support this property or method
jquery-1.8.0.js, line 4822 character 7
Safari, Firefox, and Opera work fine.