Skip to content

Conversation

@mattesmohr
Copy link
Member

As correctly stated in #191, the type modifier of Script does not provide all potential cases. This pull request fixes that by changing the accepted enum.

The reason for this is that, although the attribute type allows any valid MIME type in HTML, only text/javascript and application/json make really sense to me. However, the standard suggests omitting the default text/javascript.

@mattesmohr mattesmohr marked this pull request as ready for review November 27, 2025 19:03
@mattesmohr mattesmohr merged commit 77081ae into main Nov 27, 2025
1 check passed
@mattesmohr mattesmohr deleted the use-proper-enum branch November 27, 2025 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant