Closed Bug 507944 Opened 15 years ago Closed 15 years ago

<textarea /> eats remaining tags

Categories

(Firefox :: General, defect)

defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 162653

People

(Reporter: ora.et.labora, Unassigned)

Details

Attachments

(1 file)

534 bytes, application/xhtml+xml
Details
User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1 Build Identifier: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.1.1) Gecko/20090715 Firefox/3.5.1 === test.html === <?xml version="1.0" encoding="utf-8"?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <title>TEXTAREA</title> <meta http-equiv="content-type" content="text/html;charset=utf-8" /> <meta http-equiv="Content-Style-Type" content="text/css" /> </head> <body> <div> <textarea cols="20" rows="2" /> <!-- comment --> </div> </body> </html> === The (X)HTML code above appears to be well formed and correct according to http://validator.w3.org/check. Rendering in FireFox shows an unexpected result. Instead of an empty "textarea", I see a textarea like +-------------------+ | <!-- comment -->| | </div> | |</body> | +-------------------+ All works as expected when writing <textarea ..></textarea>. According to my humble understanding however, <textarea .. /> and <textarea ..></textarea> are the same and must render the same result. Reproducible: Always Steps to Reproduce: 1. copy sample XHTML snippet into file and open that file into browser 2. watch what gets rendered Actual Results: You can see a page with an textarea like +-------------------+ | <!-- comment -->| | </div> | |</body> | +-------------------+ Expected Results: Empty textarea.
Attached file testcase of above code
Viewing this in 3.5.1 for me did not show anything in the textarea.
Status: UNCONFIRMED → RESOLVED
Closed: 15 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: