Skip Menu |

This queue is for tickets about the HTML-Tree CPAN distribution.

Report information
The Basics
Id: 60619
Status: resolved
Priority: 0/
Queue: HTML-Tree

People
Owner: Nobody in particular
Requestors: sprout [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: HTML::Tree dies on certain attributes
Date: Sun, 22 Aug 2010 12:10:47 -0700
To: bug-HTML-Tree [...] rt.cpan.org
From: Father Chrysostomos <sprout [...] cpan.org>
I don’t think HTML::Tree should be validating attributes the way 3.23_3 does. It was always meant to be a lax parser. Up till now it has never raised an error based on input, as far as I can tell. Furthermore, the HTML 5 draft allows more characters than XML (e.g., <div a~b> is perfectly valid).
Subject: Re: [rt.cpan.org #60619] HTML::Tree dies on certain attributes
Date: Tue, 24 Aug 2010 14:53:42 +0100
To: bug-HTML-Tree [...] rt.cpan.org
From: Jeff Fearn <jefffearn [...] gmail.com>
On Sun, Aug 22, 2010 at 8:11 PM, Father Chrysostomos via RT <bug-HTML-Tree@rt.cpan.org> wrote: Show quoted text
> Sun Aug 22 15:11:03 2010: Request 60619 was acted upon. > Transaction: Ticket created by sprout@cpan.org >       Queue: HTML-Tree >     Subject: HTML::Tree dies on certain attributes >   Broken in: (no value) >    Severity: (no value) >       Owner: Nobody >  Requestors: sprout@cpan.org >      Status: new >  Ticket <URL: https://rt.cpan.org/Ticket/Display.html?id=60619 > > > > I don’t think HTML::Tree should be validating attributes the way 3.23_3 does. It was always meant to be a lax parser. Up till now it has never raised an error based on input, as far as I can tell. Furthermore, the HTML 5 draft allows more characters than XML (e.g., <div a~b> is perfectly valid).
This is a fix for https://rt.cpan.org/Public/Bug/Display.html?id=23439 I will move the attribute validation from new to as_XML ... although I think supporting invalid attributes requires a lot more leeway than "lax" provides. HTML5 probably has many more issues than it's naive approach to meta data, I won't be expending any effort to fix HTML5 issues. Cheers, Jeff.
3.23_4 is on it's way to cpan, this fix is the only change. Must be getting close to a release by now! :D Cheers, Jeff.
Subject: 4.0 released
Hi HTML::Tree ve4rsion 4.0 has been released which includes a fix for this issue. Cheers, Jeff.