| Index: sky/engine/core/dom/Document.cpp
|
| diff --git a/sky/engine/core/dom/Document.cpp b/sky/engine/core/dom/Document.cpp
|
| index 8fcd7ddb0e43a7cb9bf24d4ecd76fe194d6aa59a..07fad49696dbe448113f4223ab7d8139f9ce29d1 100644
|
| --- a/sky/engine/core/dom/Document.cpp
|
| +++ b/sky/engine/core/dom/Document.cpp
|
| @@ -445,29 +445,6 @@ PassRefPtr<Element> Document::createElement(const AtomicString& name, ExceptionS
|
| return Element::create(QualifiedName(name), this);
|
| }
|
|
|
| -PassRefPtr<Element> Document::createElement(const AtomicString& localName, const AtomicString& typeExtension, ExceptionState& exceptionState)
|
| -{
|
| - if (!isValidName(localName)) {
|
| - exceptionState.throwDOMException(InvalidCharacterError, "The tag name provided ('" + localName + "') is not a valid name.");
|
| - return nullptr;
|
| - }
|
| -
|
| - RefPtr<Element> element;
|
| -
|
| - if (CustomElement::isValidName(localName) && registrationContext()) {
|
| - element = registrationContext()->createCustomTagElement(*this, QualifiedName(localName));
|
| - } else {
|
| - element = createElement(localName, exceptionState);
|
| - if (exceptionState.hadException())
|
| - return nullptr;
|
| - }
|
| -
|
| - if (!typeExtension.isEmpty())
|
| - CustomElementRegistrationContext::setIsAttributeAndTypeExtension(element.get(), typeExtension);
|
| -
|
| - return element.release();
|
| -}
|
| -
|
| ScriptValue Document::registerElement(ScriptState* scriptState, const AtomicString& name, ExceptionState& exceptionState)
|
| {
|
| return registerElement(scriptState, name, Dictionary(), exceptionState);
|
|
|