[Pkg-javascript-commits] [dojo] 11/17: fixes #18321, corrected check for nextElementSibling

David Prévot taffit at moszumanska.debian.org
Thu Mar 24 04:28:31 UTC 2016


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag 1.7.9
in repository dojo.

commit 8d6a3e53ba29b5de8cda9ccd578250661765e5c8
Author: Dylan Schiemann <dylan at dojotoolkit.org>
Date:   Tue Jan 5 16:40:41 2016 -0700

    fixes #18321, corrected check for nextElementSibling
    
    (cherry picked from commit 7f6074dea8dae91bcfe0b47c69572fc5f586ffa2)
---
 selector/acme.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/selector/acme.js b/selector/acme.js
index c616f55..7d941ab 100644
--- a/selector/acme.js
+++ b/selector/acme.js
@@ -507,7 +507,8 @@ define(["../_base/kernel", "../has", "../dom", "../_base/sniff", "../_base/array
 	// to the spec, https://bugzilla.mozilla.org/show_bug.cgi?id=932501
 	// and https://www.w3.org/Bugs/Public/show_bug.cgi?id=23691 ,
 	// where nextElementSibling was implemented on the DocumentType
-	var _noNES = "nextElementSibling" in getDoc().documentElement;
+	var _noNES = !(htmlElmement.nextElementSibling ||
+		"nextElementSibling" in htmlElement);
 	var _ns = !_noNES ? "nextElementSibling" : "nextSibling";
 	var _ps = !_noNES ? "previousElementSibling" : "previousSibling";
 	var _simpleNodeTest = (_noNES ? _isElement : yesman);

-- 
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