Closed Bug 156432 Opened 22 years ago Closed 22 years ago

All HTML tag parameters are removed in the TEXTAREA field after a </noscript> closing tag

Categories

(Core :: DOM: Core & HTML, defect)

x86
FreeBSD
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 99467

People

(Reporter: twestman, Assigned: alexsavulov)

Details

Attachments

(1 file)

From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv:1.1a+) Gecko/20020708
BuildID:    2002070806

If I load a form which has the TEXTAREA content prefilled from the website, it
ruins all the HTML tags that are displayed after the </noscript> closing tag
inside the TEXTAREA.

When I check the source of the page, the TEXTAREA contents are correct, but
inside the TEXTAREA on the rendered page, it bugs.

I have no URL that demonstrates the problem, but I will supply the example below.

Reproducible: Always
Steps to Reproduce:
1. Create an HTML page with a TEXTAREA block that contains the following:

<script language=javascript>
<!--
    document.writeln('<font size=-1 face="Arial">Test</font>');
//-->
</script>
<noscript>
    <a HREF="http://any.url.at.all/"><img border=0 align="MIDDLE" width=1
height=1 src="invis.gif"></a>
    <br><font size=-1 face="Arial">
    <a HREF='http://my.url/'>Hello</a>
    </font>
</noscript>
    <a HREF="http://another.url/"><img border=0 align="MIDDLE" width=10
height=10 src="test.gif"></a>
    <br><font size=-1 face="Arial">
    <a HREF='http://last.url/'>Last URL</a>
    </font>

2. Load the page in Mozilla.

3. Look at the rendered TEXTAREA field.

Actual Results:  The textarea contains the following instead:

<script language=javascript>
<!--
    document.writeln('<font size=-1 face="Arial">Test</font>');
//-->
</script>
<noscript>
    <a HREF="http://any.url.at.all/"><img border=0 align="MIDDLE" width=1
height=1 src="invis.gif"></a>
    <br><font size=-1 face="Arial">
    <a HREF='http://my.url/'>Hello</a>
    </font>
</noscript>
    <a><img></a>
    <br><font>
    <a>Last URL</a>
    </font>

Expected Results:  Not wrecked the TEXTAREA content.

I hope this works out in this form submission...
Attached file Testcase
I understood that TEXTAREA shouldn't contain HTML tags. It works when all the <
and > are changed to &lt; and &gt;.
Textarea content needs to have HTML markup escaped, you know....

*** This bug has been marked as a duplicate of 99467 ***

*** This bug has been marked as a duplicate of 99467 ***
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → DUPLICATE
Verified.
Status: RESOLVED → VERIFIED
Component: HTML: Form Submission → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: