From a0aace804cab2acdc1bf01abc662ab771fd692c5 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 28 Aug 2022 01:34:24 +0300 Subject: [PATCH] bugfix... Signed-off-by: Alex A. Naanou --- pwiki/dom/wikiword.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pwiki/dom/wikiword.js b/pwiki/dom/wikiword.js index 287d282..dec5af3 100755 --- a/pwiki/dom/wikiword.js +++ b/pwiki/dom/wikiword.js @@ -83,8 +83,8 @@ function(elem){ iterText(elem) .forEach(function(text){ // skip stuff... - if(text.parentNode.nodeName == 'a' - || text.parentNode.getAttribute('wikiwords') == 'no'){ + if(text.parentNode.nodeName.toLowerCase() == 'a' + || (text.parentNode.getAttribute('wikiwords') ?? '').toLowerCase() == 'no'){ return } var t = text.nodeValue var n = setWikiWords(text.nodeValue)