Closed Bug 277050 Opened 20 years ago Closed 20 years ago

Strange behavior when textarea contains markup control characters

Categories

(Core :: Layout: Form Controls, defect)

x86
Windows 2000
defect
Not set
minor

Tracking

()

RESOLVED DUPLICATE of bug 227358

People

(Reporter: crisp, Unassigned)

References

()

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.7.5) Gecko/20041107 Firefox/1.0 First of all: yes, markup-significant control characters should be represented by their entities when used in form controls. However, there seems to be some strange inconsistent behavior with certain combinations of characters as show on the testpage. For instance, this is no problem for the rendering engine; it correctely assumes that the lower-than sign is content en not a control character: <textarea rows="5" cols="60"><- no problem here</textarea> however when the lower-than is followed by a question mark, or an exclamation mark things go wrong in the sense that all following HTML is suddenly also considered content: <textarea rows="5" cols="60"><? question mark triggers the problem?</textarea> Reproducible: Always Steps to Reproduce: 1. See testpage Actual Results: All markup following a combination of < followed by a ? or ! is considered content for the textarea Expected Results: It should use some form of error-correction to prevent this problem as it does in other cases (consistent behavior when there is no ambiguity)
Attached file Testcase
Added testpage for convenience
This is a duplicate of bug 227358, and that bug was fixed by bug 88952. *** This bug has been marked as a duplicate of 227358 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: