Closed Bug 249164 Opened 21 years ago Closed 21 years ago

XML tags not displayed in textarea form elements when documents are served as application/xhtml+xml

Categories

(Core :: Layout: Form Controls, defect)

x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED INVALID

People

(Reporter: zenbot, Unassigned)

Details

User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040624 Epiphany/1.2.6 Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7) Gecko/20040624 Epiphany/1.2.6 When an XHTML document is served as application/xhtml+xml, xml tags and their contents are not displayed in textareas. For example, the following content: "The quick brown <animal>fox</animal> jumps over the lazy brown <em>dog</em>." displays as: "The quick brown jumps over the lazy brown ." When the form is submitted, the latter sentence is what is sent (ack! Data loss!). When documents are served as text/html, the text appears and is sent as first written. Reproducible: Always Steps to Reproduce: 1. Serve XHTML document containing textarea, which in turn contains some XML tags, as application/xhtml+xml 2. Note that tags are not displayed (they are visible in source, however); submit the form. 3. At server side, note that you've been sent XML-tagless content from textarea. Actual Results: No tags are displayed; content is submitted tagless. Expected Results: Displayed the tags; submitted complete content.
This is correct behaviour. Putting elements inside <textarea> blocks is highly invalid. If you want "<" characters you have to escape them ("&lt;").
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.