summaryrefslogtreecommitdiff
path: root/html/html.go
diff options
context:
space:
mode:
Diffstat (limited to 'html/html.go')
-rw-r--r--html/html.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/html/html.go b/html/html.go
index 5ceb5e9..adee935 100644
--- a/html/html.go
+++ b/html/html.go
@@ -21,7 +21,7 @@ var (
element = Any(text, &tag)
elements = Kleene(element)
//attr := And(identifier, equal, String())
- attr = And(identifier, WS, "=", WS, `"test"`)
+ attr = And(WS, identifier, WS, "=", WS, Any(String('"'), String('\'')))
attrs = Map(Kleene(attr, WS), func(node Node) Node {
nodes := node.([]Node)
attr := map[string]string{}