Bug 19597 - <textarea><!--</textarea>--></textarea>
Summary: <textarea><!--</textarea>--></textarea>
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Macintosh OS X 10.5
: P2 Normal
Assignee: Adam Barth
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-16 21:22 PDT by Felix
Modified: 2008-06-24 21:43 PDT (History)
2 users (show)

See Also:


Attachments
Patch (24.91 KB, patch)
2008-06-24 00:28 PDT, Adam Barth
darin: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Felix 2008-06-16 21:22:05 PDT
<textarea><!--</textarea>--></textarea>
should create a textarea with the contents "<!--</textarea>-->",
and it does in firefox, ie, opera.

in safari/webkit, it creates a textarea with "<!--"
Comment 1 Collin Jackson 2008-06-16 22:51:29 PDT
According to the HTML 5 spec, Firefox/IE/Opera are correct; the textarea should contain "<!--</textarea>-->".

http://www.whatwg.org/specs/web-apps/current-work/#cdata-rcdata-restrictions
Comment 2 Adam Barth 2008-06-24 00:28:47 PDT
Created attachment 21898 [details]
Patch

I wanted to learn more about the HTML parser, but this turned out to be super easy to fix.
Comment 3 Darin Adler 2008-06-24 08:28:28 PDT
Comment on attachment 21898 [details]
Patch

r=me
Comment 4 Adam Barth 2008-06-24 21:43:44 PDT
Fixed in r34787.