Commit Graph

38 Commits

Author SHA1 Message Date
Wouter Scherphof
82a3f8a873 Merge pull request #16 from wscherphof/v0.1
Rock published
2013-03-28 15:37:55 -07:00
Wouter Scherphof
0072da75d5 Rock published 2013-03-28 23:36:43 +01:00
Wouter Scherphof
f20d84c626 Merge pull request #15 from wscherphof/#2-#3-#4-LuaRocks
closes #1 #2 #3 #5
2013-03-28 05:36:58 -07:00
Wouter Scherphof
ebda6bd003 grammatical 2013-03-28 13:31:08 +01:00
Wouter Scherphof
73faf23250 last few selectors lacked a description 2013-03-28 13:29:53 +01:00
Wouter Scherphof
8483c2ca02 added some links and descriptions 2013-03-28 13:22:57 +01:00
Wouter Scherphof
eb1c0f4df8 typo 2013-03-28 12:48:36 +01:00
Wouter Scherphof
125afe7acc Samples 2013-03-28 12:47:22 +01:00
Wouter Scherphof
16fd925625 Upped the level of #'s 2013-03-28 12:44:43 +01:00
Wouter Scherphof
17676b9b7c Just a few more `'s 2013-03-28 12:40:47 +01:00
Wouter Scherphof
24e1a7d660 After proofreading on the site 2013-03-28 12:38:13 +01:00
Wouter Scherphof
4a9fa0a790 First draft for a Rock setup 2013-03-28 12:24:10 +01:00
Wouter Scherphof
3af809df9a Depend on "set" LuaRock, added doc/ 2013-03-27 11:40:19 +01:00
Wouter Scherphof
87fc36650c Merge pull request #14 from wscherphof/#10-License
closes #10
2013-03-26 02:48:44 -07:00
Wouter Scherphof
fa0150881a closes #10
MIT License
2013-03-26 10:48:21 +01:00
Wouter Scherphof
5e9cd17ed0 one better name for a variable 2013-03-26 10:31:41 +01:00
Wouter Scherphof
f2e89f40f9 string.gsub FTW 2013-03-26 10:28:33 +01:00
Wouter Scherphof
6fdd415e91 Merge pull request #13 from wscherphof/#6-selectors
closes #6
2013-03-26 02:00:28 -07:00
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
12815e032b Merge pull request #12 from wscherphof/#6-selectors
#6 selectors: :not() and [attribute="value"] working
2013-03-25 06:01:16 -07: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
77f24f93be the selctor patterns explained 2013-03-24 23:30:34 +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
d932191a52 Merge pull request #11 from wscherphof/issue-#7---microdata
Issue #7   microdata
2013-03-21 16:12:48 -07: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
82dbddfd19 parse valueless attributes (e.g. itemscope)
And allow nested tags, which was a newly encountered bug
2013-03-21 14:03:17 +01:00
Wouter Scherphof
67be34285e Merge pull request #9 from wscherphof/issue-#8
closes #8
2013-03-20 01:42:15 -07:00
Wouter Scherphof
325fbe47d1 closes #8 2013-03-20 09:38:43 +01:00
Wouter Scherphof
4e0f1a7d63 rename HP -> hp 2013-03-19 22:36:08 +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
72040db2a6 Rename HtmlParser.lua to htmlparser.lua 2013-03-19 20:05:55 +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
Wouter Scherphof
65aff05b29 Initial commit 2013-03-19 03:24:17 -07:00