Public bug reported:

Binary package hint: mozilla-firefox

If there is a valid DTD at the beginning of the (x)htm(l) file, firefox assumes 
it's a valid file, even when gecko reports invalid code.  As a result, the 
invalid website is parsed in standards compliance mode instead of quirks mode.  
If IE starts requiring DTDs (for invalid, MSIE compatible code), quirks mode 
won't work at all because it will never be triggered.  To reproduce:
0. have a standards incompliant html authoring program installed (e.g. 
Dreamweaver)
1. Make a fairly complex web page/site (offline of course)
2. Confirm the presence of and/or add a valid doctype declaration per the 
instructions somewhere at www.w3c.org
3. View the page in Firefox.  Check the page properties.  It will be in 
"standards compliance mode."  Since your page is littered with invalid code, it 
should have switched to quirks mode at some point during rendering.

I KNOW what a DTD means.  It means "I am using valid code of format
foo."  But if the code is not valid, surely it makes sense to switch to
quirks mode?  Suppose Microsoft changed MSIE to require a DTD?  The web
designers would figure this out and spread it by way of blog, and all of
a sudden, the Internet (tm) doesn't work on firefox.

** Affects: firefox (Ubuntu)
     Importance: Undecided
         Status: New

-- 
standards incomplient page can trigger standards compliance mode; M$ can 
manipulate this
https://bugs.launchpad.net/bugs/236960
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to