Re: [xml] [HTML parser] bug in multiple attributes parsing?



On Tue, 2004-09-28 at 07:01 +0200, Emmanuel Saracco wrote:
hi,

it seems there is a problem in the HTML parser regarding parsing of IMG
tag. IMG tag allow multiple RECTANGLE attributes, but libxml2 seems to
extract only one.

HTML sample:
-----
<IMG RECTANGLE="(4,40) (68,55) mailto:test free fr" RECTANGLE="(4,19)
(101,35) /dir/test.html" RECTANGLE="(3,2) (82,15) http://www.perl.com";
SRC="images/image.png" BORDER="0" USEMAP="#testmap" WIDTH="139"
HEIGHT="112">
-----

am I wrong?

Reading the HTML specification (for HTML 4.01), it looks to me like img
elements can take precisely zero rectangle attributes (i.e. it is not a
valid attribute). So anything you get back in the above situation would
be purely a bonus.

Cheers,
Malcolm





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]