summaryrefslogtreecommitdiff
path: root/Source/WebCore/dom/Document.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/WebCore/dom/Document.cpp')
-rw-r--r--Source/WebCore/dom/Document.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/Source/WebCore/dom/Document.cpp b/Source/WebCore/dom/Document.cpp
index d202a1bf8..66fb4738e 100644
--- a/Source/WebCore/dom/Document.cpp
+++ b/Source/WebCore/dom/Document.cpp
@@ -713,6 +713,8 @@ void Document::setDocType(PassRefPtr<DocumentType> docType)
m_docType = docType;
if (m_docType)
m_docType->setTreeScopeRecursively(this);
+ // Doctype affects the interpretation of the stylesheets.
+ m_styleSelector.clear();
}
DOMImplementation* Document::implementation()