mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-23 00:19:18 +00:00
Previously, when creating a HTML element with `document.createElementNS()` we would convert the given local name to lowercase before deciding which element type to return. We now no longer perform this lower case conversion, so if an uppercase local name is provided, an element of type `HTMLUnknownElement` will be returned. This aligns our implementation with the specification.
4 lines
288 B
Text
4 lines
288 B
Text
document.createElementNS(HTMLNS, "DIV") is instance of HTMLUnknownElement: true
|
|
document.createElementNS(HTMLNS, "div") is instance of HTMLDivElement: true
|
|
document.createElement("DIV") is instance of HTMLDivElement: true
|
|
document.createElement("div") is instance of HTMLDivElement: true
|