[Pkg-javascript-commits] [dojo] 53/58: fixes #18321, so sorry

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


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

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

commit 5eccde1c1d18ab329ec475643f73415e625604a3
Author: Dylan Schiemann <dylan at dojotoolkit.org>
Date:   Tue Jan 5 16:59:02 2016 -0700

    fixes #18321, so sorry
    
    (cherry picked from commit 5df7e0a79087e92a23a2f60a32af2eb6bd364b6f)
---
 selector/acme.js | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/selector/acme.js b/selector/acme.js
index b9ee0ae..53fdcf6 100644
--- a/selector/acme.js
+++ b/selector/acme.js
@@ -502,7 +502,8 @@ define([
 	// 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 = !(htmlElmement.nextElementSibling ||
+	var htmlElement = getDoc().documentElement;
+	var _noNES = !(htmlElement.nextElementSibling ||
 		"nextElementSibling" in htmlElement);
 	var _ns = !_noNES ? "nextElementSibling" : "nextSibling";
 	var _ps = !_noNES ? "previousElementSibling" : "previousSibling";

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