-
-
Notifications
You must be signed in to change notification settings - Fork 370
Open
Labels
Description
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
SwiftSoup/Sources/Attribute.swift
Lines 15 to 20 in e2d1120
| 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" | |
| ] |