Closed
Bug 107320
Opened 24 years ago
Closed 19 years ago
"false" HTML entity (without ';') is parsed
Categories
(Core :: DOM: HTML Parser, defect)
Tracking
()
VERIFIED
WONTFIX
People
(Reporter: stmoebius, Assigned: harishd)
References
()
Details
The URL gives you a page that only contains two lines:
& lang (without the space) in one line and
& lang; in the second
Actual result:
Both lines show a left angle
Expected result:
I'm not entirely sure what the correct behavior should be (with the & as special
char) but the first line should _not_ show an angle.
The page is validated without errors by validator.w3.org.
Using:
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:0.9.5+) Gecko/20011023
Comment 1•24 years ago
|
||
Huh. The angle brackets that are showing up appear to be from somewhere up in
the Unicode range (not ASCII). What is our policy on interpreting undefined
entities, anyhow?
Status: UNCONFIRMED → NEW
Ever confirmed: true
OS: Windows 2000 → All
From w3c spec:
"In SGML, it is possible to eliminate the final ";" after a character reference
in some cases (e.g., at a line break or immediately before a tag). In other
circumstances it may not be eliminated (e.g., in the middle of a word). We
strongly suggest using the ";" in all cases to avoid problems with user agents
that require this character to be present."
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → INVALID
Reporter | ||
Comment 3•24 years ago
|
||
Ok. But what if the after the "& lang" comes some other (non-alpha) char?
Mozilla's behavior is somewhat strange. See changed testcase (URL).
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
Stephan: Please refer to my previous comment.
Marking INVALID again.
Status: REOPENED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → INVALID
Ok may be INVALID is not the right thing to say...marking WONTFIX.
Status: RESOLVED → REOPENED
Resolution: INVALID → ---
WONTFIX.
Status: REOPENED → RESOLVED
Closed: 24 years ago → 24 years ago
Resolution: --- → WONTFIX
Comment 8•23 years ago
|
||
The behavior of the testcase is correct; both "-" and ":" are name characters
per the SGML declaration of HTML 4.01 and do not terminate the entity. All
others do.
Comment 9•21 years ago
|
||
*** Bug 279583 has been marked as a duplicate of this bug. ***
Comment 10•20 years ago
|
||
*** Bug 297204 has been marked as a duplicate of this bug. ***
Updated•19 years ago
|
Status: VERIFIED → REOPENED
Resolution: WONTFIX → ---
Comment 11•19 years ago
|
||
Oops, selected the wrong option. My fault!
Status: REOPENED → RESOLVED
Closed: 24 years ago → 19 years ago
Resolution: --- → WONTFIX
Updated•19 years ago
|
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•