Closed Bug 222523 Opened 22 years ago Closed 21 years ago

angel.com -- Mozilla introduces "</server>" in a textarea text containing "<SERVER>"

Categories

(Core :: DOM: HTML Parser, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: samuel, Unassigned)

References

Details

Attachments

(1 file)

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.4) Gecko/20030624 When rendering the page in the attachment, Mozilla parses the content of the textarea field to display the original text in the source: "<SERVER>" as "<SERVER></server". We (the authors of the page) can't figure out whether the cause of this is our HTML code, or the HTML parser Reproducible: Always Steps to Reproduce: 1. Open the document in mozilla -- notice the repetition of the tag 2. This also occurs if you "View Source" 3. Open the document in a text editor: the "</server>" tag isn't there. Actual Results: - Expected Results: Mozilla should not attempt to parse the content of the text area as any kind of markup even if the text area contains some sort of markup language.
Above, where it says "<SERVER></server" it should say "<SERVER></server>"
->Parser to evaluate This may be related to bug 166866.
Assignee: english-us → parser
Component: English US → Parser
Product: Tech Evangelism → Browser
Version: unspecified → Trunk
Hoping I'm not way of base here. http://www.w3.org/TR/html4/interact/forms.html#h-17.7 Textarea is defined as having PCDATA, according to W3. This means text inside the tags is to be parsed by the browser. So it's not exactly a good idea to have < and > inside textarea, because these will be parsed. Instead, use &gt; and &lt;. The extra <\server> is probably included because Mozilla thinks <server> needs an end tag, so the parser adds it. But still seems weird to me, so I'm gonna leave this for someone who knows what they're talking about.
Fixed by the fix for bug 64799
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Depends on: 64799
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: