Let custom element registry know about picture tag

This commit is contained in:
Patrick Shaughnessy 2020-01-22 20:38:38 -05:00
parent 24674687ac
commit eb246371f1
3 changed files with 4 additions and 1 deletions

View file

@ -46,6 +46,7 @@ use crate::dom::bindings::codegen::Bindings::HTMLOptionElementBinding;
use crate::dom::bindings::codegen::Bindings::HTMLOutputElementBinding;
use crate::dom::bindings::codegen::Bindings::HTMLParagraphElementBinding;
use crate::dom::bindings::codegen::Bindings::HTMLParamElementBinding;
use crate::dom::bindings::codegen::Bindings::HTMLPictureElementBinding;
use crate::dom::bindings::codegen::Bindings::HTMLPreElementBinding;
use crate::dom::bindings::codegen::Bindings::HTMLProgressElementBinding;
use crate::dom::bindings::codegen::Bindings::HTMLQuoteElementBinding;
@ -292,6 +293,7 @@ pub fn get_constructor_object_from_local_name(
local_name!("output") => get_constructor!(HTMLOutputElementBinding),
local_name!("p") => get_constructor!(HTMLParagraphElementBinding),
local_name!("param") => get_constructor!(HTMLParamElementBinding),
local_name!("picture") => get_constructor!(HTMLPictureElementBinding),
local_name!("plaintext") => get_constructor!(HTMLPreElementBinding),
local_name!("pre") => get_constructor!(HTMLPreElementBinding),
local_name!("progress") => get_constructor!(HTMLProgressElementBinding),

View file

@ -1140,6 +1140,7 @@ fn is_extendable_element_interface(element: &str) -> bool {
element == "output" ||
element == "p" ||
element == "param" ||
element == "picture" ||
element == "plaintext" ||
element == "pre" ||
element == "progress" ||

View file

@ -152,7 +152,7 @@
expected: FAIL
[param: Operator 'new' should instantiate a customized built-in element]
expected: FAIL
[picture: Define a customized built-in element]
[picture: Operator 'new' should instantiate a customized built-in element]
expected: FAIL
[pre: Operator 'new' should instantiate a customized built-in element]
expected: FAIL