Remove more IE compatibility

This commit is contained in:
Maximilian Krög
2022-08-12 00:19:24 +02:00
parent c0d0e8e749
commit 5c4339f367
12 changed files with 6 additions and 39 deletions

View File

@@ -246,14 +246,7 @@
break;
}
// test attribute namespace
// we do not care about the difference between an empty string and
// null for namespaceURI some tests will fail in IE9 otherwise
// see also
// https://docs.microsoft.com/en-us/openspecs/ie_standards/ms-dom2c/d6ad7f24-25f4-4ab0-a36b-32ddc08f413c
if (
(node1Attr[name].namespaceURI || null) !==
(node2Attr[name].namespaceURI || null)
) {
if (node1Attr[name].namespaceURI !== node2Attr[name].namespaceURI) {
errors.push(
'namespaceURI attribute test failed for: ' +
node1.nodeName +