[Webkit-unassigned] [Bug 35043] New: Strict DTD should always trigger strict mode, also when there is an internal subset

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Feb 17 10:25:10 PST 2010


https://bugs.webkit.org/show_bug.cgi?id=35043

           Summary: Strict DTD should always trigger strict mode, also
                    when there is an internal subset
           Product: WebKit
           Version: 528+ (Nightly build)
          Platform: All
               URL: http://www.xn--mlform-iua.no.no/html4-or-html5/
        OS/Version: All
            Status: UNCONFIRMED
          Severity: Major
          Priority: P1
         Component: HTML DOM
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: xn--mlform-iua at xn--mlform-iua.no


This bug also relates to bug 9280. 

The test page (http://www.xn--mlform-iua.no.no/html4-or-html5/) triggers
QuirksMode in Safari 4 and onwards. This is caused by the internal subset of
the DOCTYPE:


       --- Example 1: ------ (Line 2 is the internal subset) ----

            <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" 
               [<!ATTLIST P myattr   CDATA #implied >] 
              >

       ---End of example ------------------------------


The internal subset causes "]>" to be displayed in the page. However that is a
separate issue - in principle (bug 9280).  (And it can be solved by a
workaround: http://www.målform.no/html4-or-html5/workaround )

The issue here is that Webkit is the only browser which sees the internal
subset as a QuirksMode trigger. (EXCEPTION:Opera 10.5 beta. Nightly Minefield
is not an exception.)

Information from Philip Thaylor of the HTMLwg 
(http://www.w3.org/mid/4B7C03BA.4050903@cam.ac.uk) says that the above DOCTYPE
(with internal subset) should trigger Standards mode WHEN THERE IS AN SYSTEM
IDENTIFIER, like this:


       --- Example 2: ------ (Line 2 is the internal subset) ---

      <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd" 
      [<!ATTLIST P myattr   CDATA #implied >]
       >

       ---End of example ------------------------------


Test page: http://www.målform.no/html4-or-html5/take2

And, true enough, in Opera 10.5beta (the only other UA to react with QuirksMode
to Example 1 , this triggers Standards Mode. But in Safari it doesn't matter.

The whole issue about whether the lack of system identifier should trigger
Quirks mode if the Doctype currently triggers Standards mode, is however
questioned - Boris Zbarsky of the HTMLwg:
http://www.w3.org/mid/4B7C0A50.305@mit.edu

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list