From 2bde8e466a4451c7319e3a072d118917957d6554 Mon Sep 17 00:00:00 2001 From: Steve Block Date: Wed, 25 May 2011 19:08:45 +0100 Subject: Merge WebKit at r82507: Initial merge by git Change-Id: I60ce9d780725b58b45e54165733a8ffee23b683e --- Source/WebCore/html/parser/HTMLElementStack.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Source/WebCore/html/parser/HTMLElementStack.h') diff --git a/Source/WebCore/html/parser/HTMLElementStack.h b/Source/WebCore/html/parser/HTMLElementStack.h index a710932..fd0e494 100644 --- a/Source/WebCore/html/parser/HTMLElementStack.h +++ b/Source/WebCore/html/parser/HTMLElementStack.h @@ -28,6 +28,7 @@ #define HTMLElementStack_h #include "Element.h" +#include "HTMLNames.h" #include #include #include @@ -167,6 +168,15 @@ private: Element* m_headElement; Element* m_bodyElement; }; + +inline bool isInHTMLNamespace(Node* node) +{ + // A DocumentFragment takes the place of the document element when parsing + // fragments and should be considered in the HTML namespace. + return node->namespaceURI() == HTMLNames::xhtmlNamespaceURI + || node->nodeType() == Node::DOCUMENT_FRAGMENT_NODE; +} + } // namespace WebCore -- cgit v1.1