diff options
author | Keith Yeung <kungfukeith11@gmail.com> | 2024-02-20 10:28:25 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-20 02:28:25 +0000 |
commit | b9935188927b5ab294ae8bf68a848d254e66aa28 (patch) | |
tree | e11488b05d901aaf354ebc371551fe090110c55c /components/script/dom/node.rs | |
parent | 5b7ee86fd1ac8fe6169f8a01639b57c25e22b44e (diff) | |
download | servo-b9935188927b5ab294ae8bf68a848d254e66aa28.tar.gz servo-b9935188927b5ab294ae8bf68a848d254e66aa28.zip |
Check for XML and XMLS namespace during 'locating a namespace' (#31374)
* Check for XML and XMLS namespace during 'locating a namespace'
* Address review comments
* Remove test expectation in legacy layout meta
Diffstat (limited to 'components/script/dom/node.rs')
-rw-r--r-- | components/script/dom/node.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 5fcfa16f937..f0d105fa166 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -2399,7 +2399,7 @@ impl Node { } } - // https://dom.spec.whatwg.org/#locate-a-namespace + /// <https://dom.spec.whatwg.org/#locate-a-namespace> pub fn locate_namespace(node: &Node, prefix: Option<DOMString>) -> Namespace { match node.type_id() { NodeTypeId::Element(_) => node.downcast::<Element>().unwrap().locate_namespace(prefix), |