HTML-Query-0.09/ 000755 000000 000120 00000000000 12401501715 013426 5 ustar 00root httpd 000000 000000 HTML-Query-0.09/ChangeLog 000644 001750 000120 00000006476 12377504605 016063 0 ustar 00kamelkev httpd 000000 000000 0.01 2008-10-07 Andy Wardley >
* Initial release to the world.
0.02 2009-06-15 Andy Wardley >
* Update code to catch ids/classes
* Adjust AUTOLOAD to properly pass arguments
* Rework tests to catch cases where id and classes have minus character in them
0.03 2010-09-27 Kevin Kamel
* Adjustment of Makefile to allow for release from non-author
* Added patch from Michael Peters to enable combinator support
* Added patch contributed from Vivek Khera to enable fuzzy attribute matching
* Updated documentation with contributions from Michael Peters regarding combinators
* Updated documentation to reflect fuzzy attribute matching
* Add tests to verify combinators, fuzzy attributes
* Add "acidtest" test from Chelsea Rio to test complex selectors
0.04 2010-10-12 Kevin Kamel
* Add support for Universal Selector, explicitely differentiating the behaviour from the
grandchild descendant selector (which is also a "*")
* Add code to explicitely dedupe some edge cases
* Add code to support flag for error suppression, add method to get error if you need it
* Rework selector parser to support complex tag stacking (exa span.class#id.class2#id2[attr])
* Add more tests for granchild descendant selector
* Add tests for universal selector
* Add tests for combinators without spaces (div>em)
* Add tests for complex tag stacking
0.05 2010-10-21 Kevin Kamel
* Added patch from Vivek Khera
- Converts HTML::Query references to hash objects
- fixes issues with report error
- fixes bug reported on RT whereby iterative queries returned incorrect results
* Added patch to correct issues found during heavier testing of 0.04
- Universal / Grandchild operator now are now better supported
- Selectors that involve , are now deduped, previously duplicate results were sneaking in
- Results sets are now sorted to match what firefox returns, if for no other reason than to
assist with validation
- Universal tests now cover a wider variety of selectors
0.06 2010-10-27 Kevin Kamel
* Added skipping for '* html' hack sequence frequently used by IE6, should return nothing
0.07 2010-11-02 Kevin Kamel
* Merge in specificity calculation. This code was ripped out of CSS::Inliner, HTML::Query is a more
appropriate place to do this calculation.
* Added optimizations so that the specificity calculation doesn't need a tree in order to operate
nor does it need a prior query to have occurred.
* Merge in tests from CSS::Inliner for specificity calculations
0.08 2012-08-01 Kevin Kamel
* Added patch from Sebastian Paaske Torholm
- Adds support for -child pseudo-classes including proper specificity calculation
- Adds tests for verifying specificity calculation and proper selection of -child pseudo classes
* Updated documentation with sections for pseudo-classes and psuedo-elements detailing
current support for those features.
0.09 2014-08-27 Kevin Kamel
* Add proper filtering for CSS3 double-colon psuedo-selectors
- Update pseudo-class test to exercise updated filtering regex
* Correct typo within documentation
HTML-Query-0.09/lib/ 000755 000000 000120 00000000000 12401501714 014173 5 ustar 00root httpd 000000 000000 HTML-Query-0.09/Makefile.PL 000644 001750 000120 00000001637 12174660451 016252 0 ustar 00kamelkev httpd 000000 000000 use strict;
use warnings;
use 5.006;
use ExtUtils::MakeMaker;
my %opts = (
'NAME' => 'HTML-Query',
'VERSION_FROM' => 'lib/HTML/Query.pm',
'PMLIBDIRS' => [ 'lib' ],
'PREREQ_PM' => {
'HTML::Tree' => 3.23,
'Badger' => 0.03,
},
'test' => {
'TESTS' => join(' ', map { glob } qw( t/*.t )),
},
);
sub MY::postamble {
return <<'MAKE_FRAG';
all :: README
README: lib/HTML/Query.pm
pod2text $> > README
MAKE_FRAG
}
# Handle dev versions in our check
my $mmv = $ExtUtils::MakeMaker::VERSION;
$mmv =~ s/\_.+//;
if ($mmv >= 5.43) {
# $opts{ AUTHOR } = 'Andy Wardley ';
$opts{ AUTHOR } = 'Kevin Kamel ';
$opts{ ABSTRACT } = 'perform jQuery-like queries on HTML::Element trees',
}
if ($ExtUtils::MakeMaker::VERSION ge '6.30_00') {
$opts{'LICENSE' } = 'perl';
}
WriteMakefile( %opts );
HTML-Query-0.09/MANIFEST 000644 000000 000120 00000001076 12401501715 014563 0 ustar 00root httpd 000000 000000 ChangeLog
lib/HTML/Query.pm
Makefile.PL
MANIFEST This list of files
README
t/acidtest.t
t/combinator.t
t/construct.t
t/duplicate.t
t/element.t
t/iterative.t
t/multioperand.t
t/pseudoclasses.t
t/query.t
t/specificity.t
t/universal.t
t/html/acidtest.html
t/html/combinator.html
t/html/multioperator.html
t/html/pseudoclasses.html
t/html/test1.html
t/html/test2.html
t/html/test3.html
t/html/universal.html
META.yml Module YAML meta-data (added by MakeMaker)
META.json Module JSON meta-data (added by MakeMaker)
HTML-Query-0.09/META.json 000644 000000 000120 00000001653 12401501715 015054 0 ustar 00root httpd 000000 000000 {
"abstract" : "perform jQuery-like queries on HTML::Element trees",
"author" : [
"Kevin Kamel "
],
"dynamic_config" : 1,
"generated_by" : "ExtUtils::MakeMaker version 6.6302, CPAN::Meta::Converter version 2.120630",
"license" : [
"perl_5"
],
"meta-spec" : {
"url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
"version" : "2"
},
"name" : "HTML-Query",
"no_index" : {
"directory" : [
"t",
"inc"
]
},
"prereqs" : {
"build" : {
"requires" : {
"ExtUtils::MakeMaker" : "0"
}
},
"configure" : {
"requires" : {
"ExtUtils::MakeMaker" : "0"
}
},
"runtime" : {
"requires" : {
"Badger" : "0.03",
"HTML::Tree" : "3.23"
}
}
},
"release_status" : "stable",
"version" : "0.09"
}
HTML-Query-0.09/META.yml 000644 000000 000120 00000001027 12401501715 014677 0 ustar 00root httpd 000000 000000 ---
abstract: 'perform jQuery-like queries on HTML::Element trees'
author:
- 'Kevin Kamel '
build_requires:
ExtUtils::MakeMaker: 0
configure_requires:
ExtUtils::MakeMaker: 0
dynamic_config: 1
generated_by: 'ExtUtils::MakeMaker version 6.6302, CPAN::Meta::Converter version 2.120630'
license: perl
meta-spec:
url: http://module-build.sourceforge.net/META-spec-v1.4.html
version: 1.4
name: HTML-Query
no_index:
directory:
- t
- inc
requires:
Badger: 0.03
HTML::Tree: 3.23
version: 0.09
HTML-Query-0.09/README 000644 001750 000120 00000064757 12401456367 015176 0 ustar 00kamelkev httpd 000000 000000 NAME
HTML::Query - jQuery-like selection queries for HTML::Element
SYNOPSIS
Creating an "HTML::Query" object using the Query() constructor
subroutine:
use HTML::Query 'Query';
# using named parameters
$q = Query( text => $text ); # HTML text
$q = Query( file => $file ); # HTML file
$q = Query( tree => $tree ); # HTML::Element object
$q = Query( query => $query ); # HTML::Query object
$q = Query(
text => $text1, # or any combination
text => $text2, # of the above
file => $file1,
file => $file2,
tree => $tree,
query => $query,
);
# passing elements as positional arguments
$q = Query( $tree ); # HTML::Element object(s)
$q = Query( $tree1, $tree2, $tree3, ... );
# or from one or more existing queries
$q = Query( $query1 ); # HTML::Query object(s)
$q = Query( $query1, $query2, $query3, ... );
# or a mixture
$q = Query( $tree1, $query1, $tree2, $query2 );
# the final argument (in all cases) can be a selector
my $spec = 'ul.menu li a'; #