Use HTMLElement interface for possible CEs

This commit is contained in:
Connor Brewster 2017-07-20 16:35:01 -06:00
parent e83a0045f9
commit 37cbc85727
3 changed files with 5 additions and 8 deletions

View file

@ -750,7 +750,7 @@ impl ElementQueue {
}
/// https://html.spec.whatwg.org/multipage/#valid-custom-element-name
fn is_valid_custom_element_name(name: &str) -> bool {
pub fn is_valid_custom_element_name(name: &str) -> bool {
// Custom elment names must match:
// PotentialCustomElementName ::= [a-z] (PCENChar)* '-' (PCENChar)*