Consider the following html document: <html> <head></head> <body> <textarea> </textarea> this text should still be in the textarea box!! </textarea> </body> </html> The escaped /textarea tag in the box should not close the textarea block, but that is indeed what happens. Many web development frameworks only escape the left angle bracket, and thus this is an unavoidable problem.
Created attachment 7250 [details] test case Same test case as an attachment.
also is reproducable on Safari 3.1.1 for Windows
Works as expected with Firefox 2.0.0.x.
Created attachment 21377 [details] Patch v1 Proposed fix.
Comment on attachment 21377 [details] Patch v1 Looks good, r=me We should double check if this has performance impact.
Comment on attachment 21377 [details] Patch v1 We tested, and this seems to have a slight but measurable performance impact on page loading. We're considering how to tweak the patch to make it faster. It may be as simple as putting the new case *after* the tagMatch instead of before. Dave, maybe we should clear the review flag so this doesn't show up in the "patches that need to be committed" list.
Comment on attachment 21377 [details] Patch v1 Clearing darin's r+ flag per Comment #6.
No more performance problems
Committed revision 34722. Swapped lines per Darin in Comment #6 to fix performance issue per Comment #8.