Skip to content

Commit 44dbda2

Browse files
a-hjoerdav
andauthored
chore: fix typo in parser/v2/elementparser.go
Co-authored-by: Joe Davidson <[email protected]>
1 parent e39abc2 commit 44dbda2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

parser/v2/elementparser.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ var (
102102
var (
103103
attributeConstantValueParser = parse.StringUntil(parse.Rune('"'))
104104
attributeConstantValueSingleQuoteParser = parse.StringUntil(parse.Rune('\''))
105-
// A valid unquoted attribute value in HTML is any string of text that is not the empty string and that doesn’t contain spaces, tabs, line feeds, form feeds, carriage returns, ", ', `, =, <, or >.
105+
// A valid unquoted attribute value in HTML is any string of text that is not an empty string and that doesn’t contain spaces, tabs, line feeds, form feeds, carriage returns, ", ', `, =, <, or >.
106106
attributeConstantValueUnquotedParser = parse.StringUntil(parse.Or(parse.RuneIn(" \t\n\r\"'`=<>/"), parse.EOF[string]()))
107107
constantAttributeParser = parse.Func(func(pi *parse.Input) (attr ConstantAttribute, ok bool, err error) {
108108
start := pi.Index()

0 commit comments

Comments
 (0)