mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
Remove applet from list extendable interfaces
This commit is contained in:
parent
81e28a2b5f
commit
e4ff934e82
1 changed files with 2 additions and 3 deletions
|
@ -133,7 +133,7 @@ impl CustomElementRegistryMethods for CustomElementRegistry {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Step 7.2
|
// Step 7.2
|
||||||
if !is_known_element_interface(extended_name) {
|
if !is_extendable_element_interface(extended_name) {
|
||||||
return Err(Error::NotSupported)
|
return Err(Error::NotSupported)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -319,12 +319,11 @@ fn is_potential_custom_element_char(c: char) -> bool {
|
||||||
(c >= '\u{10000}' && c <= '\u{EFFFF}')
|
(c >= '\u{10000}' && c <= '\u{EFFFF}')
|
||||||
}
|
}
|
||||||
|
|
||||||
fn is_known_element_interface(element: &str) -> bool {
|
fn is_extendable_element_interface(element: &str) -> bool {
|
||||||
element == "a" ||
|
element == "a" ||
|
||||||
element == "abbr" ||
|
element == "abbr" ||
|
||||||
element == "acronym" ||
|
element == "acronym" ||
|
||||||
element == "address" ||
|
element == "address" ||
|
||||||
element == "applet" ||
|
|
||||||
element == "area" ||
|
element == "area" ||
|
||||||
element == "article" ||
|
element == "article" ||
|
||||||
element == "aside" ||
|
element == "aside" ||
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue