- http://bugzilla.opendarwin.org/show_bug.cgi?id=8626
Strict mode erroneously triggered by a broken comment
Test: fast/parser/broken-comments-vs-parsing-mode.html
* page/Frame.cpp:
(WebCore::Frame::endIfNotLoading): Call determineParseMode() if needed.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@14211
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-05-05 Alexey Proskuryakov <ap@nypop.com>
+
+ Reviewed by Maciej.
+
+ - test for http://bugzilla.opendarwin.org/show_bug.cgi?id=8626
+ Strict mode erroneously triggered by a broken comment
+
+ * fast/parser/broken-comments-vs-parsing-mode-expected.checksum: Added.
+ * fast/parser/broken-comments-vs-parsing-mode-expected.png: Added.
+ * fast/parser/broken-comments-vs-parsing-mode-expected.txt: Added.
+ * fast/parser/broken-comments-vs-parsing-mode.html: Added.
+
2006-05-05 Darin Adler <darin@apple.com>
- test update for http://bugzilla.opendarwin.org/show_bug.cgi?id=8722
--- /dev/null
+4906e178fb48b465dcc1bc2ea4a3a008
+\ No newline at end of file
--- /dev/null
+layer at (0,0) size 800x600
+ RenderCanvas at (0,0) size 800x600
+layer at (0,0) size 800x84
+ RenderBlock {HTML} at (0,0) size 800x84
+ RenderBody {BODY} at (8,16) size 784x52
+ RenderBlock {P} at (0,0) size 784x18
+ RenderInline {A} at (0,0) size 60x18 [color=#0000EE]
+ RenderText {#text} at (0,0) size 60x18
+ text run at (0,0) width 60: "bug 8626"
+ RenderText {#text} at (60,0) size 363x18
+ text run at (60,0) width 8: ": "
+ text run at (68,0) width 355: "Strict mode erroneously triggered by a broken comment."
+ RenderBlock {P} at (0,34) size 784x18 [color=#00FF00]
+ RenderText {#text} at (0,0) size 642x18
+ text run at (0,0) width 642: "This text should be green, not black (CSS color values not beginning with '#' are OK in quirks mode)."
--- /dev/null
+<html>
+<!-- A broken comment ->
+<body>
+<p><a href="http://bugzilla.opendarwin.org/show_bug.cgi?id=8626">bug 8626</a>:
+Strict mode erroneously triggered by a broken comment.</p>
+
+<p style="color:00ff00">This text should be green, not black (CSS color values not beginning with '#' are OK in quirks mode).</p>
+</body>
+</html>
+2006-05-05 Alexey Proskuryakov <ap@nypop.com>
+
+ Reviewed by Maciej.
+
+ - http://bugzilla.opendarwin.org/show_bug.cgi?id=8626
+ Strict mode erroneously triggered by a broken comment
+
+ Test: fast/parser/broken-comments-vs-parsing-mode.html
+
+ * page/Frame.cpp:
+ (WebCore::Frame::endIfNotLoading): Call determineParseMode() if needed.
+
2006-05-05 Darin Adler <darin@apple.com>
- fix the Windows build (this time for sure)
// make sure nothing's left in there...
if (d->m_doc) {
- if (d->m_decoder)
- write(d->m_decoder->flush());
+ if (d->m_decoder) {
+ DeprecatedString decoded = d->m_decoder->flush();
+ if (d->m_bFirstData) {
+ d->m_doc->determineParseMode(decoded);
+ d->m_bFirstData = false;
+ }
+ write(decoded);
+ }
d->m_doc->finishParsing();
} else
// WebKit partially uses WebCore when loading non-HTML docs. In these cases doc==nil, but