LibWeb: Implement Node.isDefaultNamespace()

This method accepts a namespace URI as an argument and returns true if
the given URI is the default namespace on the given node, false
otherwise.
This commit is contained in:
Tim Ledbetter 2024-07-17 14:42:45 +01:00 committed by Alexander Kalenik
commit 055c902a37
Notes: sideshowbarker 2024-07-18 23:46:11 +09:00
5 changed files with 59 additions and 1 deletions

View file

@ -56,7 +56,7 @@ interface Node : EventTarget {
[FIXME] DOMString? lookupPrefix(DOMString? namespace);
DOMString? lookupNamespaceURI(DOMString? prefix);
[FIXME] boolean isDefaultNamespace(DOMString? namespace);
boolean isDefaultNamespace(DOMString? namespace);
[ImplementedAs=pre_insert, CEReactions] Node insertBefore(Node node, Node? child);
[CEReactions] Node appendChild(Node node);