| Index: third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp
|
| diff --git a/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp b/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp
|
| index e6a5f1186594c3bcae3e447e903b0e01fb5998f6..ce0c04906fefd85a38222153317939e4df4e08fd 100644
|
| --- a/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp
|
| +++ b/third_party/WebKit/Source/core/html/parser/HTMLConstructionSite.cpp
|
| @@ -854,6 +854,10 @@ HTMLElement* HTMLConstructionSite::createHTMLElement(AtomicHTMLToken* token)
|
| // association to occur after construction to allow better
|
| // code sharing here.
|
| element = HTMLElementFactory::createHTMLElement(token->name(), document, form, getCreateElementFlags());
|
| + // Definition for the created element does not exist here and
|
| + // it cannot be custom or failed.
|
| + DCHECK_NE(element->getCustomElementState(), CustomElementState::Custom);
|
| + DCHECK_NE(element->getCustomElementState(), CustomElementState::Failed);
|
|
|
| // "8. Append each attribute in the given token to element."
|
| setAttributes(element, token, m_parserContentPolicy);
|
|
|