Open Socialdarwinist opened 7 years ago
That's because tag cannot be embedded into
So I think Huruf should check if it tries to embed this tag to
Here is a fix:
if ( (node.nodeName.toLowerCase() != "input") && (node.nodeName.toLowerCase() != "textarea") && (node.parentNode.nodeName.toLowerCase() != "input") && (node.parentNode.nodeName.toLowerCase() != "textarea") && (node.nodeValue.trim() != "") && (node.nodeValue.match(regex_arabic_script))) { textNodes.push(node); }
Without Ḥuruf:
With Ḥuruf:
The page in the example illustration is the editing section of the English Wiktionary article for the Spanish word almíbar.
I have experienced the bug on Firefox with the addon coming from the Firefox extensions store – I would not use Chrome, as it is proprietary and, worse, distributed by the data tycoon Google. Funnily, it does not appear with the Wikipedia edition of MediaWiki.