[imps] Tree construction test in undocumented format

Thomas Broyer t.broyer at gmail.com
Fri Apr 4 17:24:48 PDT 2008

On Fri, Apr 4, 2008 at 6:11 PM, Anne van Kesteren <annevk at opera.com> wrote:
> On Fri, 04 Apr 2008 18:07:46 +0200, Anne van Kesteren <annevk at opera.com>
> wrote:
> > no public or system ID:  <!DOCTYPE %name>
> > public ID, no system ID: <!DOCTYPE %name "%public_id" >
> > no public ID, system ID: <!DOCTYPE %name  "%system_id">
> > public and system ID:    <!DOCTYPE %name "%public_id" "%system_id">
> Instead of fooling around with spaces alternatively we could put a P or S
> before the "..." in the case of either a public ID or system ID. Whether
> or not the document is in quirks mode should probably be something else.
> Maybe:
> #document-mode
> nq|q|lq
> or something like that.

In http://html5.googlecode.com/svn/trunk/tests/tree-construction an
XML-like/SGML-like DOCTYPE serialization:
   - <!DOCTYPE %name>
   - <!DOCTYPE %name PUBLIC "%public_id">
   - <!DOCTYPE %name SYSTEM "%system_id">
   - <!DOCTYPE %name PUBLIC "%public_id" " %system_id">

And in http://html5.googlecode.com/svn/trunk/tests/tree-construction/compatibility-mode.dat:
no quirks
limited quirks

Note that I've also use <!--%data--> for comments instead of the
current <!-- %data --> (note the spaces).

Thomas Broyer

More information about the Implementors mailing list