mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-30 03:27:15 +02:00
Tests/LibWeb: Rebaseline createElement and createElementNS WPT tests
These tests were previously not aligned against the DOM standard.
This commit is contained in:
committed by
Jelle Raaijmakers
parent
ab2e732da9
commit
f263a1a6b2
Notes:
github-actions[bot]
2025-07-09 08:58:38 +00:00
Author: https://github.com/shannonbooth Commit: https://github.com/LadybirdBrowser/ladybird/commit/f263a1a6b23 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5365 Reviewed-by: https://github.com/gmta ✅
@@ -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]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user