Found a parsing bug in HTMLParser

Grzegorz Adam Hankiewicz gradha at terra.es
Mon Feb 10 17:45:57 EST 2003


On Sun, Feb 09, 2003 at 09:38:36PM +0000, Bengt Richter wrote:
> On Sun, 9 Feb 2003 18:06:56 +0100, Grzegorz Adam Hankiewicz wrote:
> > 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. [...] so it surprises
> me that you get an ok validation, though I'm not surprised that
> browsers ignore anomalies.

I'll contact the validator team then.

> >HTMLParser.HTMLParseError: EOF in middle of construct, at line 5, column 1
> >
> Seems like a better message could have been generated, though.

Like all error messages, it's crystal clear once you know what's
happening, or you have seen it once before.





More information about the Python-list mailing list