Skip to content

Should crossorigin be added to the booleanAttributes list? #280

Open
@jverkoey

Description

@jverkoey

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"
]
?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions