Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: support unquoted HTML attributes, closes #963 #1028

Merged
merged 4 commits into from
Dec 30, 2024
Merged

feat: support unquoted HTML attributes, closes #963 #1028

merged 4 commits into from
Dec 30, 2024

Conversation

a-h
Copy link
Owner

@a-h a-h commented Dec 28, 2024

  • feat: support unquoted attribute values
  • feat: add tests for unquoted attributes

Closes #963

@a-h a-h requested a review from joerdav December 28, 2024 14:51
Copy link
Collaborator

@joerdav joerdav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks all good, initially the fact that the values aren't quoted worried me a bit that we may get a greedy parser here but I don't think that'll be a problem, the end condition is fairly straight forward. Had some nit picks that I'm happy to approve to go in if you are?

I also thought a fuzz test could be good, but that may be overkill here.

parser/v2/elementparser.go Outdated Show resolved Hide resolved
parser/v2/elementparser.go Outdated Show resolved Hide resolved
@a-h
Copy link
Owner Author

a-h commented Dec 30, 2024

OK, this is ready for a second review. Thanks for that!

Copy link
Collaborator

@joerdav joerdav left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@a-h a-h merged commit e16b2d8 into main Dec 30, 2024
7 checks passed
@a-h a-h deleted the issue_963 branch December 30, 2024 13:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

templ errors if HTML attributes aren't quoted
2 participants