mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Let custom element registry know about picture tag
This commit is contained in:
parent
24674687ac
commit
eb246371f1
3 changed files with 4 additions and 1 deletions
|
@ -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),
|
||||
|
|
|
@ -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" ||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue