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
Download (untitled) / with headers
text/plain 427b
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);
Download (untitled) / with headers
text/plain 791b
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.


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.