This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 26105 - Consider making .crossOrigin nullable
Summary: Consider making .crossOrigin nullable
Status: RESOLVED FIXED
Alias: None
Product: WHATWG
Classification: Unclassified
Component: HTML (show other bugs)
Version: unspecified
Hardware: Other other
: P3 normal
Target Milestone: Unsorted
Assignee: Ian 'Hixie' Hickson
QA Contact: contributor
URL: http://www.whatwg.org/specs/web-apps/...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-16 11:27 UTC by contributor
Modified: 2014-08-28 22:00 UTC (History)
5 users (show)

See Also:


Attachments

Description contributor 2014-06-16 11:27:54 UTC
Specification: http://www.whatwg.org/specs/web-apps/current-work/multipage/fetching-resources.html
Multipage: http://www.whatwg.org/C#cors-settings-attribute
Complete: http://www.whatwg.org/c#cors-settings-attribute
Referrer: http://www.whatwg.org/specs/web-apps/current-work/multipage/edits.html

Comment:
Consider making .crossOrigin nullable
so that elm.crossOrigin = elm.crossOrigin doesn't change state from No CORS to
Anonymous, and so that you don't have to use removeAttribute to switch to the
No CORS state.

IDL would change `DOMString` to `DOMString?`.
On getting, if the state is No CORS, return null.
On setting, if the value is null, remove the content attribute.

Also see https://www.w3.org/Bugs/Public/show_bug.cgi?id=24958#c1

Posted from: 90.230.218.37 by simonp@opera.com
User agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_9_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/35.0.1916.114 Safari/537.36 OPR/22.0.1471.40 (Edition Next)
Comment 1 Ian 'Hixie' Hickson 2014-06-18 21:24:21 UTC
Interesting idea. Any vendor interest?
Comment 2 Jonas Sicking (Not reading bugmail) 2014-06-19 02:06:04 UTC
Sounds good to me
Comment 3 contributor 2014-08-28 22:00:38 UTC
Checked in as WHATWG revision r8727.
Check-in comment: Make .crossOrigin = null remove the content attribute.
http://html5.org/tools/web-apps-tracker?from=8726&to=8727