http://bugs.webkit.org/show_bug.cgi?id=15467
Setting innerHTML to blank string in application/xhtml+xml mode
throws DOM Exception 7
Test: fast/dom/blank-innerHTML.xhtml
* dom/XMLTokenizer.cpp:
(WebCore::parseXMLDocumentFragment): Bail out early if the input string is empty.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@27144
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2007-10-27 Alexey Proskuryakov <ap@webkit.org>
+
+ Reviewed by Darin.
+
+ Test by Christopher Rogers <christorogers@gmail.com>.
+
+ http://bugs.webkit.org/show_bug.cgi?id=15467
+ Setting innerHTML to blank string in application/xhtml+xml mode
+ throws DOM Exception 7
+
+ * fast/dom/blank-innerHTML-expected.txt: Added.
+ * fast/dom/blank-innerHTML.xhtml: Added.
+
2007-10-26 Tristan O'Tierney <tristan@apple.com>
Reviewed by Darin Adler.
--- /dev/null
+This test did pass.
--- /dev/null
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml">
+<head>
+</head>
+<body>
+ This test did <span id="not">NOT</span> pass.
+ <script type="text/javascript">
+ if (window.layoutTestController)
+ layoutTestController.dumpAsText();
+ document.getElementById('not').innerHTML = '';
+ </script>
+</body>
+</html>
+2007-10-27 Alexey Proskuryakov <ap@webkit.org>
+
+ Reviewed by Darin.
+
+ http://bugs.webkit.org/show_bug.cgi?id=15467
+ Setting innerHTML to blank string in application/xhtml+xml mode
+ throws DOM Exception 7
+
+ Test: fast/dom/blank-innerHTML.xhtml
+
+ * dom/XMLTokenizer.cpp:
+ (WebCore::parseXMLDocumentFragment): Bail out early if the input string is empty.
+
2007-10-26 Sam Weinig <sam@webkit.org>
Enable dragging the left sidebar using the separator.
#endif
bool parseXMLDocumentFragment(const String& string, DocumentFragment* fragment, Element* parent)
{
+ if (!string.length())
+ return true;
+
XMLTokenizer tokenizer(fragment, parent);
#ifndef USE_QXMLSTREAM