Closed Bug 107537 Opened 23 years ago Closed 22 years ago

Accept raw > in textarea

Categories

(Core :: DOM: HTML Parser, defect)

x86
Windows NT
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Future

People

(Reporter: nicolas, Assigned: harishd)

Details

(Keywords: compat, Whiteboard: dup?)

Attachments

(1 file)

When i load a page (see example) i have a bug in my textarea because i have the '<' character. <html> <head> <title>Untitled Document</title> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> </head> <body bgcolor="#FFFFFF" text="#000000"> <form name="form1" method="post" action=""> <textarea name="textfield">sfqdsdsfdsfdsfwww</textarea> </form> </body> </html>
Which is the bug in your textarea and which Mozilla build are you using?? I see the default text "sfqdsdsfdsfdsfwww" as expected, but textarea has three rows instead of one (even after specifying rows=1). If the latter issue is what you mean, that's a dupe of bug 33654.
If you try with only one line, you have the same problem. Example: <textarea name="textfield" rows="3">wwwwww<ssssss</textarea> I say that we can use textarea without '<' character but the problem is that netscape 4 and internet explorer haven't the bug. My version: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.5+) Gecko/20011029
So the "<" is present in the source? Or _not_ present in the source but displayed in the browser?
Attached image The screen
The "<" is in the source. See the result screen.
Parser. The "<" is illegal there, by the way. You should be using &lt;
Assignee: asa → harishd
Status: UNCONFIRMED → NEW
Component: Browser-General → Parser
Ever confirmed: true
QA Contact: doronr → moied
Whiteboard: dup?
Ok, so the '<' is illegal here. How can I then deal with, e.g. the block administration page from a slashdot-like site, where I maintain HTML- and Perl-Code? Does anyone have a proposal for that?
Frank, no matter what's decided here that site is using bad markup and should fix it... so evangelize them. :)
This bug has been marked "future" because the original netscape engineer working on this is over-burdened. If you feel this is an error, that you or another known resource will be working on this bug,or if it blocks your work in some way -- please attach your concern to the bug for reconsideration.
Status: NEW → ASSIGNED
Target Milestone: --- → Future
Keywords: compat
Frank: use &lt; or &gt; in the textarea to achieve the effect you want.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → INVALID
Reopening. Although the markup itself is invalid, some other browsers can handle it. Also, Mozilla can handle it when the markup is a comment or if it looks like a real tag (the closing '>' is important).
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Changing subject header to be more useful. Note that I don't believe that Mozilla should support invalid markup, but it could be all right in quirks mode. -M
Summary: Error in textarea → Accept raw > in textarea
This bug seems to be fixed.
Status: REOPENED → RESOLVED
Closed: 23 years ago22 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: