Align attribute token syntax to the HTML spec. #5

Closed
bmeurer wants to merge 1 commit from bug/1383451_attribute_names into main
bmeurer commented 2022-11-15 09:40:59 +01:00 (Migrated from github.com)

According to the HTML spec1, attribute names can contain a lot more characters. This allows among other things to properly support Vue template syntax2, in particular shorthands like @click=onClick and also Dynamic Arguments syntax like v-bind:[attributeName]="url".

Bug: http://crbug.com/1383451

According to the HTML spec[^1], attribute names can contain a lot more characters. This allows among other things to properly support Vue template syntax[^2], in particular shorthands like `@click=onClick` and also Dynamic Arguments syntax like `v-bind:[attributeName]="url"`. [^1]: https://html.spec.whatwg.org/multipage/syntax.html#attributes-2 [^2]: https://vuejs.org/guide/essentials/template-syntax.html Bug: http://crbug.com/1383451
bmeurer commented 2022-11-15 09:41:39 +01:00 (Migrated from github.com)

Here's the first (uncontroversial) part of https://github.com/lezer-parser/html/pull/4, aligning the parsing of attribute names with the HTML spec.

Here's the first (uncontroversial) part of https://github.com/lezer-parser/html/pull/4, aligning the parsing of attribute names with the HTML spec.
marijnh commented 2022-11-15 10:32:14 +01:00 (Migrated from github.com)

Merged as 057e9ee, thank you.

Merged as 057e9ee, thank you.

Pull request closed

Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
lezer/html!5
No description provided.