Closed Bug 487773 Opened 16 years ago Closed 16 years ago

Double dash rendered as end of comment within value atribute

Categories

(Firefox :: Page Info Window, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 214476

People

(Reporter: w.wisselink, Unassigned)

Details

User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 1.1.4322; .NET CLR 2.0.50727) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; nl; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8 (.NET CLR 3.5.30729) Using the doctype specified below (quite common) it's not possible to do: <!-- this is a <a href="after--nothing will appear">comment</a> --> This would normally show you nothhing but in Firefox and the doctype below it will show: comment</a> --> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html><head><title></title></head><body> You can see this, but <!-- you should not see <a href="comments after--will not be shown">this</a>? -->. </body></html> Reproducible: Always Steps to Reproduce: 1. Create a HTML file with the following content: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html><head><title></title></head><body> You can see this, but <!-- you should not see <a href="after--there will be nothing!">this</a>? -->. </body></html> Actual Results: You can see this, but this? -->. Expected Results: You can see this, but . Note: that if you remove the doctype specification it will work properly. It also works normally in other browsers.
Thanks for reporting.
Status: UNCONFIRMED → RESOLVED
Closed: 16 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.