Changeset 34787 in webkit
- Timestamp:
- Jun 24, 2008 9:14:08 PM (16 years ago)
- Location:
- trunk
- Files:
-
- 12 added
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r34786 r34787 1 2008-06-24 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Darin Adler. 4 5 https://bugs.webkit.org/show_bug.cgi?id=19597 6 7 Test that we correctly parse comments containing end tags in CDATA and 8 RCDATA contexts. 9 10 * fast/parser/comment-in-script-tricky-expected.txt: Added. 11 * fast/parser/comment-in-script-tricky.html: Added. 12 * fast/parser/comment-in-style.html: Added. 13 * fast/parser/comment-in-textarea.html: Added. 14 * fast/parser/comment-in-title-expected.txt: Added. 15 * fast/parser/comment-in-title.html: Added. 16 * platform/mac/fast/parser/comment-in-style-expected.checksum: Added. 17 * platform/mac/fast/parser/comment-in-style-expected.png: Added. 18 * platform/mac/fast/parser/comment-in-style-expected.txt: Added. 19 * platform/mac/fast/parser/comment-in-textarea-expected.checksum: Added. 20 * platform/mac/fast/parser/comment-in-textarea-expected.png: Added. 21 * platform/mac/fast/parser/comment-in-textarea-expected.txt: Added. 22 1 23 2008-06-24 Dan Bernstein <mitz@apple.com> 2 24 -
trunk/WebCore/ChangeLog
r34780 r34787 1 2008-06-24 Adam Barth <abarth@webkit.org> 2 3 Reviewed by Darin Adler. 4 5 Fix <https://bugs.webkit.org/show_bug.cgi?id=19597> 6 7 Correctly parse <!-- </textarea> --> inside a <textarea>, matching 8 Internet Explorer, Firefox, Opera, and HTML 5. 9 10 Tests: fast/parser/comment-in-script-tricky.html 11 fast/parser/comment-in-style.html 12 fast/parser/comment-in-textarea.html 13 fast/parser/comment-in-title.html 14 15 * html/HTMLTokenizer.cpp: 16 (WebCore::HTMLTokenizer::parseSpecial): 17 1 18 2008-06-24 Justin Garcia <justin.garcia@apple.com> 2 19 -
trunk/WebCore/html/HTMLTokenizer.cpp
r34722 r34787 318 318 UChar ch = *src; 319 319 320 if (!scriptCodeResync && !brokenComments && !state.in TextArea() && !state.inXmp() && ch == '-' && scriptCodeSize >= 3 && !src.escaped() && scriptCode[scriptCodeSize-3] == '<' && scriptCode[scriptCodeSize-2] == '!' && scriptCode[scriptCodeSize-1] == '-') {320 if (!scriptCodeResync && !brokenComments && !state.inXmp() && ch == '-' && scriptCodeSize >= 3 && !src.escaped() && scriptCode[scriptCodeSize-3] == '<' && scriptCode[scriptCodeSize-2] == '!' && scriptCode[scriptCodeSize-1] == '-') { 321 321 state.setInComment(true); 322 322 state = parseComment(src, state);
Note: See TracChangeset
for help on using the changeset viewer.