Tests/LibWeb: Rebaseline createElement and createElementNS WPT tests

These tests were previously not aligned against the DOM standard.
This commit is contained in:
Shannon Booth
2025-07-09 19:50:15 +12:00
committed by Jelle Raaijmakers
parent ab2e732da9
commit f263a1a6b2
Notes: github-actions[bot] 2025-07-09 08:58:38 +00:00
5 changed files with 73 additions and 89 deletions

View File

@@ -112,11 +112,11 @@ test(function() {
assert_not_equals(element, null)
assert_equals(element.nodeType, Node.ELEMENT_NODE)
assert_equals(element.ownerDocument, doc)
var qualified = String(qualifiedName), names = []
var qualified = String(qualifiedName)
var names = []
var firstColonIndex = qualified.indexOf(":")
if (firstColonIndex >= 0) {
names.push(qualified.substring(0, firstColonIndex));
names.push(qualified.substring(firstColonIndex + 1));
names = qualifiedName.split(":", 2);
} else {
names = [null, qualified]
}