From 6afcbff5ed03827cc1d3b6774e27465e416729aa Mon Sep 17 00:00:00 2001
From: Wouter Scherphof
Date: Thu, 9 Jan 2014 16:33:05 +0100
Subject: [PATCH] v0.3.1
Releasing the fix allowing a `.` in attribute values in selector
strings (#30)
---
README.md | 2 +-
htmlparser-0.3.1-1.rockspec | 28 ++++++++++++++++++++++++++++
2 files changed, 29 insertions(+), 1 deletion(-)
create mode 100644 htmlparser-0.3.1-1.rockspec
diff --git a/README.md b/README.md
index 5ae4bfb..e4abbc7 100644
--- a/README.md
+++ b/README.md
@@ -87,7 +87,7 @@ All tree elements provide, apart from `:select` and `()`, the following accessor
- `.deeperclasses` as `.deeperelements`, but keyed on class name
##Limitations
-- Attribute values in selector strings cannot contain any spaces, nor any of `#`, `.`, `[`, `]`, `:`, `(`, or `)`
+- Attribute values in selector strings cannot contain any spaces, nor any of `#`, `[`, `]`, `:`, `(`, or `)`
- The spaces before and after the `>` in a `parent > child` relation are mandatory
- `line1
line2
")`, `root.nodes[1]:getcontent()` is `"line1
line2"`, while `root.nodes[1].nodes[1].name` is `"br"`
diff --git a/htmlparser-0.3.1-1.rockspec b/htmlparser-0.3.1-1.rockspec
new file mode 100644
index 0000000..9eccd9e
--- /dev/null
+++ b/htmlparser-0.3.1-1.rockspec
@@ -0,0 +1,28 @@
+package = "htmlparser"
+version = "0.3.1-1"
+source = {
+ url = "git://github.com/wscherphof/lua-htmlparser.git",
+ branch = "v0.3.1"
+}
+description = {
+ summary = "Parse HTML text into a tree of elements with selectors",
+ detailed = [[
+ Call parse() to build up a tree of element nodes. Each node in the tree, including the root node that is returned by parse(), supports a basic set of jQuery-like selectors. Or you could walk the tree by hand.
+ ]],
+ homepage = "http://wscherphof.github.io/lua-htmlparser/",
+ license = "LGPL+"
+}
+dependencies = {
+ "lua >= 5.2",
+ "set >= 0.2",
+ "lunitx >= 0.6"
+}
+build = {
+ type = "builtin",
+ copy_directories = {"doc", "tst"},
+ modules = {
+ htmlparser = "src/htmlparser.lua",
+ ["htmlparser.ElementNode"] = "src/htmlparser/ElementNode.lua",
+ ["htmlparser.voidelements"] = "src/htmlparser/voidelements.lua"
+ }
+}