Closed
Bug 89682
Opened 23 years ago
Closed 23 years ago
"<" without semicolon not translated to less than sign ("<")
Categories
(Core :: DOM: HTML Parser, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: mseitz, Assigned: harishd)
References
()
Details
(Keywords: testcase)
Attachments
(1 file)
574 bytes,
text/html
|
Details |
From Bugzilla Helper: User-Agent: Mozilla/5.0 (Windows; U; WinNT4.0; en-US; rv:0.9.2+) Gecko/20010706 BuildID: 2001070604 When a page contains "<", "<" is displayed instead of "<". Reproducible: Always Steps to Reproduce: 1. Go to sample URL Actual Results: Both the title and body display "<fstream>" Expected Results: Both the title and body should display "<fstream>" Sample: <html> <head> <title>How to Use <fstream> Classes for File I/O</title> <body> How to Use <fstream> Classes for File I/O</body> </html>
Comment 1•23 years ago
|
||
Matt, the less than sign should be represented with the characters "<" with a semicolon. The problem you describe sounds like it occurs because the semicolon was dropped.
Comment 2•23 years ago
|
||
GD mid-air collision! here is what I posted... hmm... weird. Too bad this is a refernce site because... this is invalid coding because of the missing ";". Valid less than sign should be < Valid greater than sign should be > I have attached a testcase to show how mozilla is parsing this. It seems that mozilla will parse (add the missing ";") for characters other than alpha or numbers. This explains why it parses the greater than sign (because nothing follows) while the less than sign chokes. --> over to parser for evaluation. for reference ie5.5 allows for alpha characters after invalid code will chokes on numbers (see testcase). I suggest wontfix or evangelism because it is bad code but you never know how many other sites do this too.
Assignee: asa → harishd
Component: Browser-General → Parser
Keywords: testcase
QA Contact: doronr → bsharma
Summary: "<" not translated to less than sign ("<") → invalid "<" not translated to less than sign ("<")
Comment 3•23 years ago
|
||
Comment 4•23 years ago
|
||
This is certainly not 4xp. 4.76 on Linux shows "<fstream>" in this case. In fact, James' testcase is rendered identically by mozilla build 2001-07-06-08 and NS 4.76 on Linux. I too would suggest evangelism.
Keywords: 4xp
Updated•23 years ago
|
Summary: invalid "<" not translated to less than sign ("<") → "<" without semicolon not translated to less than sign ("<")
Reporter | ||
Comment 5•23 years ago
|
||
I contacted DevX and they have corrected the problem on their page.
Comment 6•23 years ago
|
||
thanks matt! :-) marking WFM because devx fixed their invalid markup.
Status: UNCONFIRMED → RESOLVED
Closed: 23 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•