mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Auto merge of #25578 - pshaughn:custompicture, r=jdm
Let custom element registry know about picture tag <!-- Please describe your changes on the following line: --> This replaces one WPT failure with another, but the previous one failure was preventing multiple cases from running, and now only one of those cases fails (due to #24993). --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [X] `./mach build -d` does not report any errors - [X] `./mach test-tidy` does not report any errors - [X] These changes fix #25577 <!-- Either: --> - [X] There are tests for these changes <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
This commit is contained in:
commit
8b9018cd3e
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" ||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue