Skip to content

Commit

Permalink
Remove applet from list extendable interfaces
Browse files Browse the repository at this point in the history
  • Loading branch information
cbrewster committed Jun 16, 2017
1 parent 81e28a2 commit e4ff934
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions components/script/dom/customelementregistry.rs
Expand Up @@ -133,7 +133,7 @@ impl CustomElementRegistryMethods for CustomElementRegistry {
}

// Step 7.2
if !is_known_element_interface(extended_name) {
if !is_extendable_element_interface(extended_name) {
return Err(Error::NotSupported)
}

Expand Down Expand Up @@ -319,12 +319,11 @@ fn is_potential_custom_element_char(c: char) -> bool {
(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 == "abbr" ||
element == "acronym" ||
element == "address" ||
element == "applet" ||
element == "area" ||
element == "article" ||
element == "aside" ||
Expand Down

0 comments on commit e4ff934

Please sign in to comment.