[imps] Tree construction test in undocumented format

Henri Sivonen hsivonen at iki.fi
Fri Apr 4 09:14:13 PDT 2008

On Apr 4, 2008, at 19:11, Anne van Kesteren 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.

How about <!DOCTYPE %name %public_id "%system_id> where %foo_id is  
either a double-quoted string or the string 'null' without quotes.

But if both are null, use
<!DOCTYPE %name>

Henri Sivonen
hsivonen at iki.fi

More information about the Implementors mailing list