From 39ffda345d25b6b6e2f3a2340ac50b12f69c1537 Mon Sep 17 00:00:00 2001 From: Christian Guenter Date: Wed, 12 Dec 2018 13:17:33 +0100 Subject: [PATCH] Fix: Patch querySelector with numeric IDs --- src/zabapgit_js_common.w3mi.data.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zabapgit_js_common.w3mi.data.js b/src/zabapgit_js_common.w3mi.data.js index 93aaf985b..65b2ed876 100644 --- a/src/zabapgit_js_common.w3mi.data.js +++ b/src/zabapgit_js_common.w3mi.data.js @@ -1037,7 +1037,7 @@ Patch.prototype.togglePatchActive = function(oEvent, elClicked, elCorrespondingL Patch.prototype.togglePatchActiveForClassLink = function(oEvent, elClicked, oClassCombination) { var sCorrespondingLinkId = this.getCorrespodingLinkId(elClicked.id, oClassCombination); - var elCorrespondingLink = document.querySelector('#' + this.escape(sCorrespondingLinkId)); + var elCorrespondingLink = document.querySelector('[ID="' + this.escape(sCorrespondingLinkId) + '"]'); this.togglePatchActive(oEvent, elClicked, elCorrespondingLink); }; @@ -1065,7 +1065,7 @@ Patch.prototype.patchLinkClickAll = function(oClassCombination) { return function(oEvent) { var sTableId = oEvent.srcElement.parentElement.parentElement.parentElement.parentElement.id; - var elAddAll = document.querySelectorAll('#' + this.escape(sTableId) + ' a.' + oClassCombination.sClassLinkClicked); + var elAddAll = document.querySelectorAll('[ID="' + this.escape(sTableId) + '"] a.' + oClassCombination.sClassLinkClicked); [].forEach.call(elAddAll,function(elem){ this.togglePatchActiveForClassLink(oEvent, elem, oClassCombination);