Hallo,
ich habe folgenden Code gefunden und frage mich, was wohl die zweite (letzten) Zeilen bedeuten mag - die Notation mit dem Doppelpunkt sehe ich so zum ersten Mal
------------------------------------------------------------
const hasLangAttrFilter = {
acceptNode: function(aNode) { // <<<<<<<<<<<<<< ??????????????
if ((this.isXML)&&(aNode.hasAttributeNS(XML_NS, "lang"))) {
return NodeFilter.FILTER_ACCEPT;
}
if ((this.isHTML)&&(aNode.hasAttribute("lang"))) {
if ((!this.isXML)||(aNode.namespaceURI == XHTML_NS)) {
return NodeFilter.FILTER_ACCEPT;
}
}
return NodeFilter.FILTER_SKIP;
},
isXML: false, // <<<<<<<<<<<<<< ??????????????
isHTML: false // <<<<<<<<<<<<<< ??????????????
};
------------------------------------------------------------
Pete