Fix SGML parsing of processing instructions (<?xml ...?>)
commit1a177491a0249bf915a77692b60e8292888c5c5c
authorJonas Fonseca <fonseca@diku.dk>
Thu, 29 Dec 2005 17:31:49 +0000 (29 18:31 +0100)
committerJonas Fonseca <fonseca@antimatter.localdomain>
Thu, 29 Dec 2005 17:31:49 +0000 (29 18:31 +0100)
tree9c03c3575f35bf7a37cfe613562480aa3371049e
parentc24c67ce59a2fb4a1cb85f7675ef0806c18d42c7
Fix SGML parsing of processing instructions (<?xml ...?>)

It involves adding a new scanner state which is used only to generate a new
processing instruction (PI) data token. This removes some scanner specific
code from the parser and makes handling of PIs more generic. The data of
XML PIs are still parsed as attributes and added to the PI node.

The 6th test now succeeds. Hurrah!
src/dom/sgml/parser.c
src/dom/sgml/scanner.c
src/dom/sgml/scanner.h