mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
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
This commit is contained in:
parent
5b7ee86fd1
commit
b993518892
4 changed files with 22 additions and 41 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue