Skip Menu |
 

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

Report information
The Basics
Id: 25916
Status: open
Priority: 0/
Queue: HTML-TreeBuilder-Select

People
Owner: Nobody in particular
Requestors: sierra [...] ftrd.us
Cc:
AdminCc:

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



CC: Mike Sierra <sierra [...] ftrd.us>
Subject: feature request
Date: Thu, 29 Mar 2007 13:18:19 -0400
To: bug-HTML-TreeBuilder-Select [...] rt.cpan.org
From: Mike Sierra <sierra [...] ftrd.us>
Download (untitled) / with headers
text/plain 890b
It doesn't look like I sent this as an explicit request yet. A useful feature would be to access elements not just by selector, but by CSS property name or value. E.g, something like: @elements = $tree->select_property( display => 'none' ); @elements = $tree->select_property( 'width' ); ...maybe even: %hash = $elements[0]->styles; All that would require collating the contents of linked CSS, <style> regions, and local <tag style="..."> calls. To get an idea of why this feature might be useful, I plan to build on the server-side uacss.pl script, using your module to trim out user-agent-specific elements whose display is none, reducing the memory footprint for mobile content. If you're *not* interested, let me know since I'll probably be coding the routine anyway. Excellent module, thanks, and just when I needed it! --Mike Sierra, sierra@ftrd.us
Download (untitled) / with headers
text/plain 1.1k
On Thu Mar 29 13:18:38 2007, sierra@ftrd.us wrote: Show quoted text
> It doesn't look like I sent this as an explicit request yet. A > useful feature would be to access elements not just by selector, but > by CSS property name or value. E.g, something like: > > @elements = $tree->select_property( display => 'none' ); > @elements = $tree->select_property( 'width' ); > > ...maybe even: > > %hash = $elements[0]->styles; > > All that would require collating the contents of linked CSS, <style> > regions, and local <tag style="..."> calls. To get an idea of why > this feature might be useful, I plan to build on the server-side > uacss.pl script, using your module to trim out user-agent-specific > elements whose display is none, reducing the memory footprint for > mobile content. If you're *not* interested, let me know since I'll > probably be coding the routine anyway. > > Excellent module, thanks, and just when I needed it! > > --Mike Sierra, sierra@ftrd.us >
Hi, I'd be happy to integrate any code you've written or work with you on implementing it. Sorry it's taken so long to get back to you, I haven't checked RT in a bit. Glad you found the module useful! Rob


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.