Commit Graph

26 Commits

Author SHA1 Message Date
Tobias Dammers
1f0ded8353 Retain whitespace nodes between tags 2019-01-14 10:07:00 +01:00
Tobias Dammers
c61e68db55 Handle omitted closing tags in domify. 2019-01-10 23:39:54 +01:00
Tobias Dammers
9e41f61439 Failing unit tests for implicitly closed tags in domify 2019-01-10 17:17:11 +01:00
vi
efbbaa4315 Deprecated Text.Taggy.Combinators; use taggy-lens instead. 2015-05-09 23:39:08 +08:00
vi
f56acd06e4 A test suite to validate a successful parse on each html_files/*html. 2014-07-25 17:27:50 +08:00
vi
986af3de9f (Forgivingly) permit semicolons in attribute names.. 2014-07-25 15:12:02 +08:00
vi
c2ed0062d0 Don't choke on trailing newlines. 2014-07-25 14:22:34 +08:00
vi
9f9480c049 (Forgivingly) permit ["/.] in attribute names. 2014-07-25 13:47:57 +08:00
Alp Mestanogullari
ed4f798288 add a test for tagnames with a dot in them and fix a previous test. fixes #7 2014-07-18 23:42:07 +02:00
Alp Mestanogullari
7fdf455908 add a (test) spec for the entity conversion module -- it checks the behavior on named html entities and (decimal and hexadecimal) numeric html entities 2014-07-08 08:47:18 +02:00
vi
66b05584b7 Permissively parse malformed closing tags, specifically those missing ">". 2014-07-06 17:31:27 +08:00
vi
65c5288718 An option to control whether entities are converted during rendering. 2014-06-29 23:59:08 +08:00
vi
edcf2b1433 A simple DOM tree renderer, using Blaze. 2014-06-26 19:51:23 +08:00
vi
04ac52ebd0 (Combinators./*): describes all subtrees (including the target) matching a given predicate. 2014-06-24 15:06:35 +08:00
vi
e7487d337c Combinators: trees extracts subtrees, including the target parent. 2014-06-24 15:04:04 +08:00
vi
a9c6224541 Added subtrees combinator + miscellaneous refactoring. 2014-06-23 19:04:57 +08:00
Alp Mestanogullari
3b62ee0505 Merge pull request #4 from fmapfmapfmap/combinators
Two new combinators: hasName and (/&).
2014-06-23 10:36:28 +02:00
vi
a4e6b9466a Two new combinators: hasName and (/&). 2014-06-23 16:21:28 +08:00
Alp Mestanogullari
7b26531fe3 Merge pull request #3 from fmapfmapfmap/combinators
Some simple combinators on DOM-style documents.
2014-06-23 09:55:47 +02:00
vi
1f60b9c9b5 An Element combinator to filter on an element and its children. 2014-06-23 15:43:47 +08:00
vi
b46ea8b696 Combinator on Element: innerText. 2014-06-23 15:03:51 +08:00
vi
773419b9a0 Two simple combinators on Element: getAttr and hasAttr. 2014-06-23 14:39:19 +08:00
vi
5a673ab3ff Remove main from ParserSpec; we've only one spec, so this is redundant with Spec.main. 2014-06-23 13:43:01 +08:00
vi
a608e0494d Define ~> as a specialisation of the version in Hspec.Attoparsec.Source. 2014-06-23 13:38:47 +08:00
vi
bee253e428 Remove definition of shouldParse (it's in hspec-attoparsec), and dependency on hspec-expectations. 2014-06-23 13:19:43 +08:00
Alp Mestanogullari
f70ec4a0be add some basic tests for the parser 2014-06-16 16:38:29 +02:00