diff options
Diffstat (limited to 'WebCore/html/HTMLElement.cpp')
-rw-r--r-- | WebCore/html/HTMLElement.cpp | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/WebCore/html/HTMLElement.cpp b/WebCore/html/HTMLElement.cpp index bc4bf07..4dcf998 100644 --- a/WebCore/html/HTMLElement.cpp +++ b/WebCore/html/HTMLElement.cpp @@ -359,7 +359,7 @@ void HTMLElement::setInnerHTML(const String& html, ExceptionCode& ec) void HTMLElement::setOuterHTML(const String& html, ExceptionCode& ec) { - Node* p = parent(); + Node* p = parentNode(); if (!p || !p->isHTMLElement()) { ec = NO_MODIFICATION_ALLOWED_ERR; return; @@ -507,7 +507,7 @@ Node* HTMLElement::insertAdjacent(const String& where, Node* newChild, Exception // Opera also appears to disallow such usage. if (equalIgnoringCase(where, "beforeBegin")) { - ContainerNode* parent = this->parent(); + ContainerNode* parent = this->parentNode(); return (parent && parent->insertBefore(newChild, this, ec)) ? newChild : 0; } @@ -518,7 +518,7 @@ Node* HTMLElement::insertAdjacent(const String& where, Node* newChild, Exception return appendChild(newChild, ec) ? newChild : 0; if (equalIgnoringCase(where, "afterEnd")) { - ContainerNode* parent = this->parent(); + ContainerNode* parent = this->parentNode(); return (parent && parent->insertBefore(newChild, nextSibling(), ec)) ? newChild : 0; } @@ -625,7 +625,7 @@ void HTMLElement::addHTMLAlignmentToStyledElement(StyledElement* element, Attrib bool HTMLElement::supportsFocus() const { - return Element::supportsFocus() || (isContentEditable() && parent() && !parent()->isContentEditable()); + return Element::supportsFocus() || (isContentEditable() && parentNode() && !parentNode()->isContentEditable()); } bool HTMLElement::isContentEditable() const |