Closed
Bug 233609
Opened 21 years ago
Closed 20 years ago
Transfer-Encoding: chunked content interpreted in quirks mode
Categories
(Core :: Networking: HTTP, defect)
Tracking
()
People
(Reporter: jamie, Assigned: darin.moz)
References
()
Details
Attachments
(1 file, 1 obsolete file)
208 bytes,
text/html
|
Details |
User-Agent: Build Identifier: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.6) Gecko/20040207 Firefox/0.8 Firefox interprets the page at http://www.artefact.org.nz/cgi-bin/wordhoard/test.cgi in quirks mode, and in view source shows: <DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01//EN http://www.w3.org/TR/html4/strict.dtd> <html> <head> <title></title> </head> <body> <h1>Test</h1> </body> </html> However, a basic (telnet) request and response is actually: Trying 202.0.62.88... Connected to 202-0-62-88.cable.paradise.net.nz. Escape character is '^]'. GET /cgi-bin/wordhoard/test.cgi HTTP/1.1 Host: www.artefact.org.nz HTTP/1.1 200 OK Date: Tue, 10 Feb 2004 02:45:44 GMT Server: Apache Transfer-Encoding: chunked Content-Type: text/html; charset=UTF-8 Content-Language: en a5 <DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title></title> </head> <body> <h1>Test</h1> </body> </html> 0 Connection closed by foreign host. Notice that the quotation marks have been removed from around the public and system parts of the DTD in Firefox's source view. Reproducible: Always Steps to Reproduce: 1. Go to http://www.artefact.org.nz/cgi-bin/wordhoard/test.cgi 2. View source to see missing quotes 3. View page info to see that it is using quirks mode Actual Results: The source is missing the quotation marks that the server sends out as part of the document type declaration, and Firefox is (consequently?) interpreting the document in quirks mode. Expected Results: Firefox should not have removed the quotation marks, and should interpret the document according in strict mode.
Comment 1•21 years ago
|
||
The server doesn't respond....
Reporter | ||
Comment 2•21 years ago
|
||
Hmm, it seems fine to me - the logs are showing my accesses, as well as those of many other IP addresses. I don't have an alternate place to put the script. However, given that the script is simply: #!/usr/bin/env python print "Content-Type: text/html" print print """<DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> <html> <head> <title></title> </head> <body> <h1>Test</h1> </body> </html>""" it isn't hard to replicate elsewhere.
Comment 4•20 years ago
|
||
<DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd"> Mozilla drops the quotes, but kicks into quirks mode because of the missing '!' before the DOCTYPE. This occurs even when loading directly from local disk.
Comment 5•20 years ago
|
||
<foo "bar"> ==> <foo bar>
Attachment #143199 -
Attachment is obsolete: true
Comment 6•20 years ago
|
||
dupe of "view source makes double-quotes disappear" *** This bug has been marked as a duplicate of 70828 ***
Status: UNCONFIRMED → RESOLVED
Closed: 20 years ago
Resolution: --- → DUPLICATE
You need to log in
before you can comment on or make changes to this bug.
Description
•