aboutsummaryrefslogtreecommitdiffstats
path: root/components/script
diff options
context:
space:
mode:
authorPatrick Shaughnessy <pshaughn@comcast.net>2020-01-22 20:38:38 -0500
committerPatrick Shaughnessy <pshaughn@comcast.net>2020-01-23 08:41:46 -0500
commiteb246371f19111ecea1e03bb8d469b88c5efa66a (patch)
treef81419ea7d3cb9dc5241b746b54883e0dda3d3d9 /components/script
parent24674687acaaca3a796f8cc61bc98c6e7d0097fb (diff)
downloadservo-eb246371f19111ecea1e03bb8d469b88c5efa66a.tar.gz
servo-eb246371f19111ecea1e03bb8d469b88c5efa66a.zip
Let custom element registry know about picture tag
Diffstat (limited to 'components/script')
-rw-r--r--components/script/dom/bindings/htmlconstructor.rs2
-rw-r--r--components/script/dom/customelementregistry.rs1
2 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/bindings/htmlconstructor.rs b/components/script/dom/bindings/htmlconstructor.rs
index 1937f400fda..2b242612486 100644
--- a/components/script/dom/bindings/htmlconstructor.rs
+++ b/components/script/dom/bindings/htmlconstructor.rs
@@ -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),
diff --git a/components/script/dom/customelementregistry.rs b/components/script/dom/customelementregistry.rs
index 392cf49cce5..7a6e269a38d 100644
--- a/components/script/dom/customelementregistry.rs
+++ b/components/script/dom/customelementregistry.rs
@@ -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" ||