Closed Bug 297204 Opened 20 years ago Closed 20 years ago

HTML that has "template &ltclass T&gt" does not show the first < correctly

Categories

(Firefox :: General, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

VERIFIED DUPLICATE of bug 107320

People

(Reporter: ilya.rozenberg, Unassigned)

Details

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.8) Gecko/20050511 Firefox/1.0.4

HTML that has 
             
       "template &ltclass T&gt"

it does not show the first < correctly 

Reproducible: Always
Summary: HTML that "template &ltclass T&gt" does not show the first < correctly → HTML that has "template &ltclass T&gt" does not show the first < correctly
Reporter, can you attach a testcase using
https://bugzilla.mozilla.org/attachment.cgi?bugid=297204&action=enter please?
Thanks!
Reporter, the correct way to use character entities is by ending with a semi-colon:
&lt;
&gt;
Instead of "template &ltclass T&gt" it should be "template &lt;class T&gt;"
->INVALID
i dont see any ; after the &lt

--> invalid
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → INVALID
Works with IE:
http://babbage.cs.qc.edu/STL_Docs/templates.htm
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Yes, then please contact the IE team and tell them you found a bug. The
semi-colon is required for this to work correctly.
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → INVALID
I will. Any way you put it you also have defect.
&lt shows as &lt
but
&gt shows as >
What ever you think is right the other one is wrong.
In the general note, think it is a defect when user has to do more to achive the
the same result on the page.
Status: RESOLVED → UNCONFIRMED
Resolution: INVALID → ---
Actually, I think it's allowed NOT to use ; when there's whitespace or an end of
line right after &whatever. Still it's not a good practice, since you can use ;
and cover all cases.
Both &lt and &gt will work if there is no text coming directly after it

This is actually a duplicate, duping

Please see bug 107320, comment 2

*** This bug has been marked as a duplicate of 107320 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago20 years ago
Resolution: --- → DUPLICATE
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.