mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-30 12:49:19 +00:00
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:
parent
27d429a85f
commit
055c902a37
Notes:
sideshowbarker
2024-07-18 23:46:11 +09:00
Author: https://github.com/tcl3
Commit: 055c902a37
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/693
5 changed files with 59 additions and 1 deletions
|
@ -697,6 +697,7 @@ public:
|
|||
|
||||
Optional<String> locate_a_namespace(Optional<String> const& prefix) const;
|
||||
Optional<String> lookup_namespace_uri(Optional<String> prefix) const;
|
||||
bool is_default_namespace(Optional<String> namespace_) const;
|
||||
|
||||
protected:
|
||||
Node(JS::Realm&, Document&, NodeType);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue