Closed Bug 186146 Opened 22 years ago Closed 22 years ago

begin and end of HTML comment detection

Categories

(Core :: Layout, defect)

x86
Windows 2000
defect
Not set
normal

Tracking

()

VERIFIED INVALID

People

(Reporter: mozilla, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20021212 Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.3a) Gecko/20021212 Mozilla does not correctly detect the HTML comments in the code below. This changes when removing the double quotes in the first line. -----------------8<----------------------------------------------- <!DOCTYPE HTML PUBLIC ""> <html> <head> </head> <body> Before comments<br> <!----- -------------------------------------------------------------------------------------------------------> Between comments 1<br> <!-----/-------------------------------------------------------------------------------------------------------> Between comments 2<br> <!-----/-------------------------------------------------------------------------------------------------------> After the comments. </body></html> Reproducible: Always Steps to Reproduce: 1. copy the above lines to a file and display it in mozilla 2. display to the source code to see mozillas interpretation of the HTML 3.
Please note that the beginning of comment 3 is completely dropped in the source view of moz. Greetings Gernot
another thing: this applies to all versions of mozilla.
Those aren't valid HTML comments. Read <URL:http://www.w3.org/TR/html401/intro/sgmltut.html#h-3.2.4>. Changing the quotes is causing doctype switching to a mode that's more tolerant of bad markup. INVALID.
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Resolution: --- → INVALID
v.
Status: RESOLVED → VERIFIED
Product: Core → Core Graveyard
Component: Layout: Misc Code → Layout
Product: Core Graveyard → Core
You need to log in before you can comment on or make changes to this bug.