Side navigation
#15151 closed bug (fixed)
Opened June 17, 2014 03:00AM UTC
Closed September 05, 2014 05:50AM UTC
Last modified September 05, 2014 05:53AM UTC
msxml2.domdocument error with jQuery 2
Reported by: | Ianchi | Owned by: | gibson042 |
---|---|---|---|
Priority: | low | Milestone: | 2.2 |
Component: | manipulation | Version: | 2.1.1 |
Keywords: | msxml2 | Cc: | |
Blocked by: | Blocking: |
Description
There is an error when using msxml2.domdocument wrapped on jQuery 2.x. It Works fine with jQquery 1.x
The problematic code can be found in http://jsfiddle.net/Ufh8y/14/ and is as follows:
var xmlDoc = $(new ActiveXObject("msxml2.domdocument.6.0")); xmlDoc.get(0).appendChild(xmlDoc.get(0).createNode(1,"ConnectionString","")) xmlDoc.find("ConnectionString").each(function () { $(this).text("test"); });
When run in IE11 with jQuery 1.x it works OK but in jQuery 2.x I get the following error:
SCRIPT450: Wrong number of arguments or invalid property assignment
File: jquery-git2.js, Line: 4994, Column: 2
The problema seems to be when it trys for the existance of the method "getElementsByTagName"
var ret = context.getElementsByTagName ? ....
this raises an error which is no longer trapped in v2.
Thanks
Attachments (0)
Change History (3)
Changed June 17, 2014 01:41PM UTC by comment:1
component: | unfiled → manipulation |
---|---|
owner: | → gibson042 |
priority: | undecided → low |
status: | new → assigned |
Changed September 05, 2014 05:50AM UTC by comment:2
resolution: | → fixed |
---|---|
status: | assigned → closed |
Changed September 05, 2014 05:53AM UTC by comment:3
milestone: | None → 2.2 |
---|
Introduced by https://github.com/jquery/jquery/commit/25712d77c3bc0221b5b2b9b9492c20a9cfbe1b17... seems like IE11 still hangs on to some host object sins from the past.