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.