SwiftSoup icon indicating copy to clipboard operation
SwiftSoup copied to clipboard

Should crossorigin be added to the booleanAttributes list?

Open jverkoey opened this issue 1 year ago • 2 comments

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 https://github.com/scinfu/SwiftSoup/blob/e2d11208519549c2e5798d70190472045633f22f/Sources/Attribute.swift#L15-L20?

jverkoey avatar Aug 10 '24 02:08 jverkoey