Commit Graph

8 Commits

Author SHA1 Message Date
Maxime Bourget
3fecebd5ba Allows more that one space between css selector.
This is needed to support addToken_ workaround before the fix.
Before the fix, an extra space was needed in the selector like this

example:

    addToken "form.foo "

With the fix adding the missing space, code already adding a space
will end up with two spaces between the scope selector and the input one :

    form.foo  input[name=token_]
2016-04-11 21:58:50 +01:00
Maxime Bourget
62fc67a444 Fix addToken_ needing a trailing space to work.
The fix can add spaces in place where none or only one where expected.
The css parser has been modified to remove trailing or multiple spaces.
This might be a bit more lax that official CSS spec.
2016-04-11 21:15:27 +01:00
Erik de Castro Lopo
d31e2d0988 yesod-test : Fix two more CssQuery parser problems.
Closes #834
2014-10-02 21:26:24 +10:00
Erik de Castro Lopo
58bf5223c0 yesod-test : Fix parsing of descendent selector in CSS query parser.
Closes #834
2014-10-01 06:24:57 +10:00
Erik de Castro Lopo
581a688cf5 yesod-test: Improve CSS selector parser.
* Tighten up what the parser will accept (especially wrt identifiers).
* Write the parser in a more idiomatic (for *parsec) style.
2014-09-17 10:24:57 +10:00
Michael Snoyman
7c65829f03 Fix some warnings 2012-03-29 08:44:01 +02:00
Michael Snoyman
0201415b05 Migrated yesod-test to attoparsec 2012-03-28 08:14:51 +02:00
Michael Snoyman
a3e27a3d57 Started yesod-test test suite (yo dawg...) 2012-03-28 08:03:47 +02:00