Commit Graph

12 Commits

Author SHA1 Message Date
Wouter Scherphof
206f7af3c4 closes #6
:not(), [att=val], [att!=val], [att|=val], [att*=val], [att~=val],
[att^=val], [att$=val]
Note that the selection is now returned as a simple Set, breaking the
abilty brought in by #8 and #9 tot :select() or () on the selection. Of
course, the elements in the returned Set are still ElementNodes that
can be selected upon.
2013-03-26 09:57:00 +01:00
Wouter Scherphof
64f3eb4df3 Moved some details to a function
... regarding [attribute=value] and other matching.
Also explained (in comments) the different matching patterns.
And fixed a bug where /> would be listed as an attribute.
And added a few more tests.
2013-03-25 13:55:35 +01:00
Wouter Scherphof
de746865be [attribute="value"] working 2013-03-25 13:02:41 +01:00
Wouter Scherphof
591e7ebc8b improved not and lost method chaining
fixed :not() in that it filters after all matches, preventing later
selection of elements that shouldn't have been there
Also, ditched the idea of returning a container node, since it was
complex and didn't add much. The functionality could be reintroduced by
having Set implement the __call or maybe even __index to return the
combined results of all its elements.
2013-03-24 23:20:03 +01:00
Wouter Scherphof
48183bbf04 :not() seems to be functioning now
needs some tidying up and some more test runs
2013-03-22 22:34:50 +01:00
Wouter Scherphof
f9b04866b4 closes #7
Extracting microdata is fairly tedious compared to microformats, due to
its generality. Should probably be included as a standard function of
the parser, or even better, as a separate module, which then can
concern itself with being fully standards compliant.
2013-03-22 00:10:24 +01:00
Wouter Scherphof
78d99a61f6 incomplete test for extraxting microdata
See -- TODO
2013-03-21 14:30:29 +01:00
Wouter Scherphof
325fbe47d1 closes #8 2013-03-20 09:38:43 +01:00
Wouter Scherphof
01c38b022d __call = select 2013-03-19 22:32:24 +01:00
Wouter Scherphof
94a1d8259a rename of htmlparser 2013-03-19 20:07:52 +01:00
Wouter Scherphof
64db283c1d Added construction of chapters and contacts tables
Do demonstrate how to use it to do something useful. Maybe this could
be generalized. But maybe better in a seperate module.
2013-03-19 15:29:12 +01:00
Wouter Scherphof
76000166e0 first draft
Inital working version in version control
2013-03-19 11:37:08 +01:00