diff options
author | Keith Yeung <kungfukeith11@gmail.com> | 2024-02-14 16:16:37 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-02-14 08:16:37 +0000 |
commit | 123854faeedfb61415f0beac93531500137a7d01 (patch) | |
tree | 9e57a2543ffccc19a2db01611e1791f4df6a6644 /components/script/dom/domparser.rs | |
parent | d00312eb082cc7fbdbb1b17f9fbe519f475eec07 (diff) | |
download | servo-123854faeedfb61415f0beac93531500137a7d01.tar.gz servo-123854faeedfb61415f0beac93531500137a7d01.zip |
Support the parsing of image/svg+xml elements (#31318)
* Support the parsing of image/svg+xml elements
* Update WPT test expectations
Diffstat (limited to 'components/script/dom/domparser.rs')
-rw-r--r-- | components/script/dom/domparser.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/components/script/dom/domparser.rs b/components/script/dom/domparser.rs index 6bfb195ee46..470a49968a3 100644 --- a/components/script/dom/domparser.rs +++ b/components/script/dom/domparser.rs @@ -10,7 +10,7 @@ use crate::document_loader::DocumentLoader; use crate::dom::bindings::codegen::Bindings::DOMParserBinding; use crate::dom::bindings::codegen::Bindings::DOMParserBinding::DOMParserMethods; use crate::dom::bindings::codegen::Bindings::DOMParserBinding::SupportedType::{ - Application_xhtml_xml, Application_xml, Text_html, Text_xml, + Application_xhtml_xml, Application_xml, Image_svg_xml, Text_html, Text_xml, }; use crate::dom::bindings::codegen::Bindings::DocumentBinding::DocumentReadyState; use crate::dom::bindings::codegen::Bindings::WindowBinding::WindowMethods; @@ -84,7 +84,7 @@ impl DOMParserMethods for DOMParser { document.set_ready_state(DocumentReadyState::Complete); Ok(document) }, - Text_xml | Application_xml | Application_xhtml_xml => { + Text_xml | Application_xml | Application_xhtml_xml | Image_svg_xml => { let document = Document::new( &self.window, HasBrowsingContext::No, |