Closed
Bug 303236
Opened 21 years ago
Closed 21 years ago
Textarea end tag not checked for in bad code leading to HTML spillage
Categories
(Core :: DOM: HTML Parser, defect)
Tracking
()
RESOLVED
DUPLICATE
of bug 263012
People
(Reporter: register, Unassigned)
Details
Attachments
(1 file)
|
525 bytes,
text/html
|
Details |
User-Agent: Opera/8.02 (Windows NT 5.1; U; en)
Build Identifier:
If a form with a textarea element has a missing end tag, Firefox does not check
for this and displays the rest of the code inside the textarea onscreen.
Reproducible: Always
Steps to Reproduce:
1. Create form with textarea but do not add an end tag
2.
3.
Actual Results:
Code after the opening textarea tag is output onscreen.
Expected Results:
The element should have been automatically closed and the rest of the page
processed as normal.
* In Opera 8, the textarea is closed (correct error-checking behaviour)
* In IE6/XP, the same problem as Firefox occurs (code spills into the textarea)
* Textareas can contain HTML tags which are shown onscreen, so I realise this is
happening here.
* If the textarea is written in an XML format as in "(textarea/)" then the same
problem occurs (using an XHTML page served as text/html). I checked the HTML
specs and it says the end tag is required. But Firefox needs to check for cases
of invalid code as it does with other elements.
* If you serve the page as XML then "(textarea/)" becomes a valid construct,
assuming the textarea is empty. Firefox then closes the form properly.
Comment 1•21 years ago
|
||
A testcase or example would be nice.
Component: General → HTML: Parser
Product: Firefox → Core
Version: unspecified → Trunk
Updated•21 years ago
|
Assignee: nobody → parser
QA Contact: general → mrbkap
| Reporter | ||
Comment 2•21 years ago
|
||
The attachment shows a form with two textareas. One has an end tag, the other
has a closed tag in the XML format for empty elements. (This allows testing in
XML mode if the file is given a proper XML declaration and renamed as .xml)
This works the same as just using an opening textarea tag without a closing
one.
Note: if the code stops because no textarea end tag is found, there will be no
Reset button shown after the form. You should see the code appear in the
textarea instead (onscreen).
Comment 3•21 years ago
|
||
Ok, thanks for the testcase, but this bug is a duplicate of bug 263012.
*** This bug has been marked as a duplicate of 263012 ***
Status: UNCONFIRMED → RESOLVED
Closed: 21 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•