style attr parsing surprise

"corvid" <[email protected]>
Newsgroups gmane.comp.web.dillo.devel
Message-ID <20110803181805.GB25521@local>
CSS complained about "no values" for padding, and it turned out to be
something like

<element style="padding: 10px
15px">

Html_get_attr2() is removing the '\n' completely.

It turns out that we're doing the right thing (whereas I expected it
to be replaced by a ' ') because the style attr is %StyleSheet, which
is CDATA, and we are instructed to "Ignore line feeds" for CDATA.

But I'm writing this down anyway because it surprised me, and it's
good to save this away in the list archives (which may well have
a few variations on this already from years past).

(Or is it coming to be time to admit defeat for html4 and start
looking in the shocking endless immensity that is html5 when
it comes to such matters?)
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.