[Pkg-javascript-commits] [dojo] 110/149: fixes #17083, dojo/_base/xhr form without action can read current URL
David Prévot
taffit at moszumanska.debian.org
Sat Feb 27 03:13:53 UTC 2016
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch master
in repository dojo.
commit 1b25383408cefeb51c65e2bd6b3bdf36608204ac
Author: dylans <dylan at dojotoolkit.org>
Date: Sat Dec 26 07:13:32 2015 -0700
fixes #17083, dojo/_base/xhr form without action can read current URL
---
_base/xhr.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/_base/xhr.js b/_base/xhr.js
index 0d0db8e..8ee4439 100644
--- a/_base/xhr.js
+++ b/_base/xhr.js
@@ -121,8 +121,8 @@ define([
if(result && has("dom-qsa2.1") && !result.querySelectorAll && has("dom-parser")){
// http://bugs.dojotoolkit.org/ticket/15631
- // IE9 supports a CSS3 querySelectorAll implementation, but the DOM implementation
- // returned by IE9 xhr.responseXML does not. Manually create the XML DOM to gain
+ // IE9 supports a CSS3 querySelectorAll implementation, but the DOM implementation
+ // returned by IE9 xhr.responseXML does not. Manually create the XML DOM to gain
// the fuller-featured implementation and avoid bugs caused by the inconsistency
result = new DOMParser().parseFromString(xhr.responseText, "application/xml");
}
@@ -334,7 +334,7 @@ define([
//IE requires going through getAttributeNode instead of just getAttribute in some form cases,
//so use it for all. See #2844
var actnNode = form.getAttributeNode("action");
- ioArgs.url = ioArgs.url || (actnNode ? actnNode.value : null);
+ ioArgs.url = ioArgs.url || (actnNode ? actnNode.value : (dojo.doc ? dojo.doc.URL : null));
formObject = domForm.toObject(form);
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/dojo.git
More information about the Pkg-javascript-commits
mailing list