htmllib: CR in CDATA

Mark Nottingham mnot at
Tue Jun 22 11:31:04 CEST 1999

Whooops, nevermind, I misread the spec -- carriage returns are turned into
spaces (which is what htmllib does) - *line feeds* should be ignored...

"Get me the phone book."
  "Which one?"
"Doesn't matter."

----- Original Message -----
From: Mark Nottingham <mnot at>
To: Python <python-list at>
Sent: Tuesday, June 22, 1999 12:55
Subject: htmllib: CR in CDATA

> It appears that htmllib doesn't ignore returns in CDATA fields, as HTML
> says it should:
> As a result, htmllib improperly parses any CDATA element that wraps across
> line; this affects elements like
> <A href="foo.
> gif">
> I'm happy to work up a patch, but I thought I'd ask around first. It may
> a bit involved to fix it properly; every CDATA should be handled this way,
> which practically means almost every tag attribute.
> Regards,
> Mark Nottingham, Melbourne Australia
> mnot at

More information about the Python-list mailing list