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

Changes for v3.8.0 #106

Merged
merged 21 commits into from
May 18, 2023
Merged

Changes for v3.8.0 #106

merged 21 commits into from
May 18, 2023

Conversation

triarius
Copy link
Contributor

No description provided.

pda and others added 21 commits May 9, 2023 14:47
Rather than dropping some HTML-sensitive characters during parsing of
element attibute values, instead thoroughly HTML-escape these attributes
during rendering when interpolating them into actual HTML.

The element attribute parser now supports single quotes within
double-quoted attributes, and double quotes within single-quoted
attributes. I don't know if that's useful, but it seems more correct and
less surprising then dropping them.

Substantially more test coverage for handling and producing HTML.
An allow-list would be preferable, but we don't know what URL schemes
are being legitimately used in the wild, so that would be a breaking
change, and likely require configurability.
Rather than dropping some HTML-sensitive characters during parsing of
element attibute values, instead thoroughly HTML-escape these attributes
during rendering when interpolating them into actual HTML.

The element attribute parser now supports single quotes within
double-quoted attributes, and double quotes within single-quoted
attributes. I don't know if that's useful, but it seems more correct and
less surprising then dropping them.

Substantially more test coverage for handling and producing HTML.
I've preserved the nature of the file being gzipped and committed the
gzipped file to the repo. It can be created from its source with `go
generate ./...`, but the standard practice is to commit files generated
by `go generate` so that a `go install` command is able to use them.
Instead, in server mode, return appropriate http status codes and in
file/stdin mode, exit status 1.
This avoids `go generate` making the build process slightly more
complex, and avoids committing an (admittedly tiny) gzipped file.
# Conflicts:
#	element.go
#	element_test.go
#	terminal_test.go
…g-unsafepointer'

# Conflicts:
#	Dockerfile
#	go.mod
@triarius triarius merged commit 48373b0 into main May 18, 2023
@triarius triarius deleted the release/v3.8.0 branch May 18, 2023 07:09
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.

None yet

2 participants