htmllib: CR in CDATA

Mark Nottingham mnot at
Tue Jun 22 04:55:24 CEST 1999

It appears that htmllib doesn't ignore returns in CDATA fields, as HTML 4.0
says it should:

As a result, htmllib improperly parses any CDATA element that wraps across a
line; this affects elements like

<A href="foo.

I'm happy to work up a patch, but I thought I'd ask around first. It may be
a bit involved to fix it properly; every CDATA should be handled this way,
which practically means almost every tag attribute.


Mark Nottingham, Melbourne Australia
mnot at

More information about the Python-list mailing list