Found a parsing bug in HTMLParser

Grzegorz Adam Hankiewicz gradha at terra.es
Tue Feb 11 18:14:39 EST 2003


> > > I've found a bug in HTMLParser parsing some of my webpages. The
> > > problem is using an attribute with a value inside double quotes
> > > which is near another attribute. I've created a small testcase
> >
> > Too "near" to be legal HTML 4.0, I believe. [...]
> 
> I'll contact the validator team then.

Cool, I've found a "documented feature" of the validator:

> The validator relies on OpenSP to parse XML, and as stated in
> the results of validation, OpenSP supports has some limitations:
> http://openjade.sourceforge.net/doc/xml.htm "OpenSP does not
> enforce the following XML constraints:
> [...]
> # XML does not allow a parameter separator that is adjacent to a delimiter to be omitted."
>
>Which is the case in your example.





More information about the Python-list mailing list