Commit 92522713 authored by mrowe@apple.com's avatar mrowe@apple.com

2008-06-22 Robert Blaut <webkit@blaut.biz>

        Reviewed by Darin Adler.

        Fix for https://bugs.webkit.org/show_bug.cgi?id=17421
        Bug 17421: Lack of end tag for SELECT element causes the rest of page to not be rendered

        Test: fast/parser/input-textarea-inside-select-element.html

        * html/HTMLParser.cpp:
        (WebCore::HTMLParser::handleError):


git-svn-id: http://svn.webkit.org/repository/webkit/trunk@34734 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent 5de69cdc
2008-06-22 Robert Blaut <webkit@blaut.biz>
Reviewed by Darin Adler.
Test for https://bugs.webkit.org/show_bug.cgi?id=17421
Bug 17421: Lack of end tag for SELECT element causes the rest of page to not be rendered
* fast/parser/input-textarea-inside-select-element-expected.txt: Added.
* fast/parser/input-textarea-inside-select-element.html: Added.
2008-06-22 Robert Blaut <webkit@blaut.biz>
Reviewed by Darin Adler.
Test for bug 17421: Lack of end tag of SELECT element causes inaccessible (blank) a rest of a page rendered.
There should be two green bars below.
PASS
PASS
<!doctype html>
<html>
<script>
if (window.layoutTestController)
layoutTestController.dumpAsText();
</script>
<body>
<p>Test for <a href="https://bugs.webkit.org/show_bug.cgi?id=17421">bug 17421</a>:
Lack of end tag of SELECT element causes inaccessible (blank) a rest of a page rendered.</p>
<p>There should be two green bars below.</p>
<select>
<input>
<p style="background-color:lime;">PASS</p>
<select>
<textarea></textarea>
<p style="background-color:lime;">PASS</p>
</body>
</html>
2008-06-22 Robert Blaut <webkit@blaut.biz>
Reviewed by Darin Adler.
Fix for https://bugs.webkit.org/show_bug.cgi?id=17421
Bug 17421: Lack of end tag for SELECT element causes the rest of page to not be rendered
Test: fast/parser/input-textarea-inside-select-element.html
* html/HTMLParser.cpp:
(WebCore::HTMLParser::handleError):
2008-06-22 David Krause <david.krause@gmail.com>
Reviewed by Darin Adler.
......@@ -613,6 +613,12 @@ bool HTMLParser::handleError(Node* n, bool flat, const AtomicString& localName,
// IE treats a nested select as </select>. Let's do the same
popBlock(localName);
}
} else if (h->hasLocalName(selectTag)) {
if (localName == inputTag || localName == textareaTag) {
reportError(MisplacedContentRetryError, &localName, &currentTagName);
popBlock(currentTagName);
handled = true;
}
} else if (h->hasLocalName(colgroupTag)) {
popBlock(currentTagName);
handled = true;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment