Index: Source/core/xml/parser/XMLDocumentParser.cpp |
diff --git a/Source/core/xml/parser/XMLDocumentParser.cpp b/Source/core/xml/parser/XMLDocumentParser.cpp |
index 66d55ccce71632efde457edee173082041b297d5..bb534c2b7fd416cf53a5dbc0fd2ea9c604932de1 100644 |
--- a/Source/core/xml/parser/XMLDocumentParser.cpp |
+++ b/Source/core/xml/parser/XMLDocumentParser.cpp |
@@ -1,6 +1,6 @@ |
/* |
* Copyright (C) 2000 Peter Kelly (pmk@post.com) |
- * Copyright (C) 2005, 2006, 2008 Apple Inc. All rights reserved. |
+ * Copyright (C) 2005, 2006, 2008, 2014 Apple Inc. All rights reserved. |
* Copyright (C) 2006 Alexey Proskuryakov (ap@webkit.org) |
* Copyright (C) 2007 Samuel Weinig (sam@webkit.org) |
* Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) |
@@ -505,7 +505,7 @@ bool XMLDocumentParser::parseDocumentFragment(const String& chunk, DocumentFragm |
// FIXME: We need to implement the HTML5 XML Fragment parsing algorithm: |
// http://www.whatwg.org/specs/web-apps/current-work/multipage/the-xhtml-syntax.html#xml-fragment-parsing-algorithm |
// For now we have a hack for script/style innerHTML support: |
- if (contextElement && (contextElement->hasLocalName(HTMLNames::scriptTag) || contextElement->hasLocalName(HTMLNames::styleTag))) { |
+ if (contextElement && (contextElement->hasLocalName(scriptTag.localName()) || contextElement->hasLocalName(styleTag.localName()))) { |
fragment->parserAppendChild(fragment->document().createTextNode(chunk)); |
return true; |
} |