Skip Menu |

This queue is for tickets about the CSS-DOM CPAN distribution.

Report information
The Basics
Id: 54810
Status: resolved
Priority: 0/
Queue: CSS-DOM

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

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



Subject: Can't use an undefined value as an ARRAY reference at CSS/DOM/Style.pm line 305
When parsing ext-3.1.1/resources/css/ext-all.css from http://extjs.cachefly.net/ext-3.1.1.zip, the parsing eventually dies with: Can't use an undefined value as an ARRAY reference at /usr/lib/perl5/vendor_perl/5.10.0/CSS/DOM/Style.pm line 305, <STDIN> line 1. Simple parsing code I used (after reading in the above file to $css): my $sheet = CSS::DOM::parse($css, property_parser => $CSS::DOM::PropertyParser::Default);
On Fri Feb 19 16:21:03 2010, SCOP wrote: Show quoted text
> When parsing ext-3.1.1/resources/css/ext-all.css from > http://extjs.cachefly.net/ext-3.1.1.zip, the parsing eventually dies > with: > > Can't use an undefined value as an ARRAY reference at > /usr/lib/perl5/vendor_perl/5.10.0/CSS/DOM/Style.pm line 305, <STDIN> line > 1. > > Simple parsing code I used (after reading in the above file to $css): > > my $sheet = CSS::DOM::parse($css, property_parser => > $CSS::DOM::PropertyParser::Default);
I cannot reproduce this with ext-all.css. But I can reproduce it another way: use CSS::DOM; use CSS::DOM::PropertyParser; my $sheet = CSS::DOM::parse( "foo{}", property_parser => $CSS::DOM::PropertyParser::Default ); print $_->style->length for cssRules $sheet' This has been fixed in 0.09.