Closed
Bug 237654
Opened 22 years ago
Closed 22 years ago
Web proxies which add code before html tag force use of quirks mode on standards compliant pages
Categories
(Core :: DOM: HTML Parser, enhancement)
Tracking
()
RESOLVED
INVALID
People
(Reporter: d.drury, Unassigned)
Details
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113
Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.6) Gecko/20040113
Some web filtering proxies such as Proxomitron add tags outside of the <html>
tags in standards compliant pages. This forces the quirks mode of the layout
engine.
Reproducible: Always
Steps to Reproduce:
1. Use proxomitron as web filter
2. View standards compliant page with correct doctype
Actual Results:
Page displayed in quirks mode.
Expected Results:
When strict doctype appears in doc, shouldn't use quirks mode.
I understand that this is a problem with web filtering software really.
However, it would be better if Mozilla used the instructions in a web page to
decide on mode (ie use doctype, even if it is used incorrectly) rather than
trying to second guess problematic code. If Mozilla forced an error, authors of
proxy filtering software would have to sort out how their software.
Mode detection is a heuristic -- not really something we expect authors to know
about or choose (and the vast majority don't).
In any case, the DOCTYPE-sniffing code stops looking for a DOCTYPE if we find
any tags or text, as it should.
Alias: prox_layout_mode
Status: UNCONFIRMED → RESOLVED
Closed: 22 years ago
Component: Layout → HTML: Parser
Resolution: --- → INVALID
You need to log in
before you can comment on or make changes to this bug.
Description
•