mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Check namespace during ce def lookup
This commit is contained in:
parent
1a9f4cad08
commit
41371208a5
3 changed files with 18 additions and 9 deletions
|
@ -122,7 +122,7 @@ fn create_html_element(name: QualName,
|
|||
assert!(name.ns == ns!(html));
|
||||
|
||||
// Step 4
|
||||
let definition = document.lookup_custom_element_definition(name.local.clone(), is);
|
||||
let definition = document.lookup_custom_element_definition(&name.ns, &name.local, is.as_ref());
|
||||
|
||||
if let Some(definition) = definition {
|
||||
if definition.is_autonomous() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue