Bugzilla – Bug 515
Handle <!DOCTYPE> in parser.
Last modified: 2011-05-16 20:34:38 CEST
Index: source =================================================================== --- source (revision 2699) +++ source (revision 2700) @@ -56763,18 +56763,18 @@ <p>Append a <code>DocumentType</code> node to the <code>Document</code> node, with the <code title="">name</code> - attribute set to the name given in the DOCTYPE token; the <code - title="">publicId</code> attribute set to the public identifier - given in the DOCTYPE token, or the empty string if the public - identifier was missing; the <code title="">systemId</code> - attribute set to the system identifier given in the DOCTYPE token, - or the empty string if the system identifier was missing; and the - other attributes specific to <code>DocumentType</code> objects set - to null and empty lists as appropriate. Associate the - <code>DocumentType</code> node with the <code>Document</code> - object so that it is returned as the value of the <code - title="">doctype</code> attribute of the <code>Document</code> - object.</p> + attribute set to the name given in the DOCTYPE token, or the empty + string if the name was missing; the <code title="">publicId</code> + attribute set to the public identifier given in the DOCTYPE token, + or the empty string if the public identifier was missing; the + <code title="">systemId</code> attribute set to the system + identifier given in the DOCTYPE token, or the empty string if the + system identifier was missing; and the other attributes specific + to <code>DocumentType</code> objects set to null and empty lists + as appropriate. Associate the <code>DocumentType</code> node with + the <code>Document</code> object so that it is returned as the + value of the <code title="">doctype</code> attribute of the + <code>Document</code> object.</p> <p id="quirks-mode-doctypes">Then, if the DOCTYPE token matches one of the conditions in the following list, then