-
rniwa@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=125132 Reviewed by Darin Adler. Source/WebCore: Always use the context element's namespace as the default namespace URI when one is not specified by xmlns. The new behavior matches that of Internet Explorer and the specified behavior in HTML5: http://www.w3.org/TR/2013/CR-html5-20130806/the-xhtml-syntax.html#parsing-xhtml-fragments "The default namespace is the namespace for which the DOM isDefaultNamespace() method on the element would return true." Test: fast/parser/fragment-parsing-in-document-without-xmlns.html * xml/parser/XMLDocumentParserLibxml2.cpp: (WebCore::XMLDocumentParser::XMLDocumentParser): LayoutTests: Added a test for parsing a markup fragment inside a XHTML document without xmlns. The parsed fragment should use the context element's namespace as the default namespace. * fast/parser/fragment-parsing-in-document-without-xmlns-expected.txt: Added. * fast/parser/fragment-parsing-in-document-without-xmlns.html: Added. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@160024 268f45cc-cd09-0410-ab3c-d52691b4dbfc
55fa369e