diff --git a/third_party/blink/renderer/core/dom/document.cc b/third_party/blink/renderer/core/dom/document.cc index 670fa75dae9c46..f7a30a0bd0d37b 100644 --- a/third_party/blink/renderer/core/dom/document.cc +++ b/third_party/blink/renderer/core/dom/document.cc @@ -247,6 +247,7 @@ #include "third_party/blink/renderer/core/loader/progress_tracker.h" #include "third_party/blink/renderer/core/loader/text_resource_decoder_builder.h" #include "third_party/blink/renderer/core/mathml/mathml_element.h" +#include "third_party/blink/renderer/core/mathml/mathml_row_element.h" #include "third_party/blink/renderer/core/mathml_element_factory.h" #include "third_party/blink/renderer/core/mathml_names.h" #include "third_party/blink/renderer/core/origin_trials/origin_trial_context.h" @@ -1022,10 +1023,11 @@ Element* Document::CreateRawElement(const QualifiedName& qname, } else if (RuntimeEnabledFeatures::MathMLCoreEnabled() && qname.NamespaceURI() == mathml_names::kNamespaceURI) { element = MathMLElementFactory::Create(qname.LocalName(), *this, flags); + // An unknown MathML element is treated like an element. // TODO(crbug.com/1021837): Determine if we need to introduce a - // MathMLUnknownClass. + // MathMLUnknownElement IDL. if (!element) - element = MakeGarbageCollected(qname, *this); + element = MakeGarbageCollected(qname, *this); saw_elements_in_known_namespaces_ = true; } else { element = MakeGarbageCollected(qname, this); diff --git a/third_party/blink/renderer/core/mathml/mathml_tag_names.json5 b/third_party/blink/renderer/core/mathml/mathml_tag_names.json5 index daecf8af444808..3331e8a9cf432d 100644 --- a/third_party/blink/renderer/core/mathml/mathml_tag_names.json5 +++ b/third_party/blink/renderer/core/mathml/mathml_tag_names.json5 @@ -2,7 +2,7 @@ metadata: { namespace: "MathML", namespaceURI: "http://www.w3.org/1998/Math/MathML", - fallbackInterfaceName: "MathMLElement", + fallbackInterfaceName: "MathMLRowElement", fallbackJSInterfaceName: "MathMLElement", export: "CORE_EXPORT", },