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

Should crossorigin be added to the booleanAttributes list? #280

Open
jverkoey opened this issue Aug 10, 2024 · 1 comment
Open

Should crossorigin be added to the booleanAttributes list? #280

jverkoey opened this issue Aug 10, 2024 · 1 comment

Comments

@jverkoey
Copy link
Contributor

Reading https://html.spec.whatwg.org/#cors-settings-attributes, crossorigin allows the empty string to be treated as anonymous. This means that <script crossorigin> is equivalent to <script crossorigin="">.

Should crossorigin be added to the booleanAttributes list in

static let booleanAttributes: [String] = [
"allowfullscreen", "async", "autofocus", "checked", "compact", "controls", "declare", "default", "defer",
"disabled", "formnovalidate", "hidden", "inert", "ismap", "itemscope", "multiple", "muted", "nohref",
"noresize", "noshade", "novalidate", "nowrap", "open", "readonly", "required", "reversed", "seamless",
"selected", "sortable", "truespeed", "typemustmatch"
]
?

@aehlke
Copy link
Collaborator

aehlke commented Aug 19, 2024

sounds like it

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

No branches or pull requests

2 participants