Skip to content

Commit

Permalink
[giow] (3) Make .crossOrigin = null remove the content attribute.
Browse files Browse the repository at this point in the history
Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=26105
Affected topics: DOM APIs, HTML, Video and Audio

git-svn-id: http://svn.whatwg.org/webapps@8727 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Aug 28, 2014
1 parent a56ce89 commit 7d3b61c
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 38 deletions.
27 changes: 15 additions & 12 deletions complete.html
Expand Up @@ -4843,8 +4843,6 @@ <h4 id=reflecting-content-attributes-in-idl-attributes>2.7.1 Reflecting content
means that on getting, the IDL attribute returns the current value of the content attribute, and
on setting, the IDL attribute changes the value of the content attribute to the given value.</p>





<p>In general, on getting, if the content attribute is not present, the IDL attribute must act as
Expand Down Expand Up @@ -4876,7 +4874,15 @@ <h4 id=reflecting-content-attributes-in-idl-attributes>2.7.1 Reflecting content
(e.g. the attribute is missing and there is no <i id=reflecting-content-attributes-in-idl-attributes:missing-value-default><a href=#missing-value-default>missing value default</a></i>); and on setting, the
content attribute must be set to the specified new value.</p>

<p>If a reflecting IDL attribute is a <code id=reflecting-content-attributes-in-idl-attributes:idl-domstring-4><a href=#idl-domstring>DOMString</a></code> attribute but doesn't fall into any
<p>If a reflecting IDL attribute is a nullable <code id=reflecting-content-attributes-in-idl-attributes:idl-domstring-4><a href=#idl-domstring>DOMString</a></code>
attribute whose content attribute is an <a href=#enumerated-attribute id=reflecting-content-attributes-in-idl-attributes:enumerated-attribute-2>enumerated attribute</a>, then, on getting, if
the corresponding content attribute is in its <i>missing value default</i> then the IDL attribute
must return null, otherwise, the IDL attribute must return the conforming value associated with
the state the attribute is in (in its canonical case); and on setting, if the new value is null,
the content attribute must be removed, and otherwise, the content attribute must be set to the
specified new value.</p>

<p>If a reflecting IDL attribute is a <code id=reflecting-content-attributes-in-idl-attributes:idl-domstring-5><a href=#idl-domstring>DOMString</a></code> attribute but doesn't fall into any
of the above categories, then the getting and setting must be done in a transparent,
case-preserving manner.</p>

Expand Down Expand Up @@ -9029,7 +9035,7 @@ <h4 id=the-link-element>4.2.4 The <dfn><code>link</code></dfn> element</h4>
<dl class=element><dt><a href=#concept-element-categories id=the-link-element:concept-element-categories>Categories</a>:<dd><a href=#metadata-content-2 id=the-link-element:metadata-content-2>Metadata content</a>.<dd>If the <code id=the-link-element:names:-the-itemprop-attribute><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute is present: <a href=#flow-content-2 id=the-link-element:flow-content-2>flow content</a>.<dd>If the <code id=the-link-element:names:-the-itemprop-attribute-2><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute is present: <a href=#phrasing-content-2 id=the-link-element:phrasing-content-2>phrasing content</a>.<dt><a href=#concept-element-contexts id=the-link-element:concept-element-contexts>Contexts in which this element can be used</a>:<dd>Where <a href=#metadata-content-2 id=the-link-element:metadata-content-2-2>metadata content</a> is expected.<dd>In a <code id=the-link-element:the-noscript-element><a href=#the-noscript-element>noscript</a></code> element that is a child of a <code id=the-link-element:the-head-element><a href=#the-head-element>head</a></code> element.<dd>If the <code id=the-link-element:names:-the-itemprop-attribute-3><a href=#names:-the-itemprop-attribute>itemprop</a></code> attribute is present: where <a href=#phrasing-content-2 id=the-link-element:phrasing-content-2-2>phrasing content</a> is expected.<dt><a href=#concept-element-content-model id=the-link-element:concept-element-content-model>Content model</a>:<dd><a href=#concept-content-nothing id=the-link-element:concept-content-nothing>Nothing</a>.<dt><a href=#concept-element-tag-omission id=the-link-element:concept-element-tag-omission>Tag omission in text/html</a>:<dd>No <a href=#syntax-end-tag id=the-link-element:syntax-end-tag>end tag</a>.<dt><a href=#concept-element-attributes id=the-link-element:concept-element-attributes>Content attributes</a>:<dd><a href=#global-attributes id=the-link-element:global-attributes>Global attributes</a><dd><code id=the-link-element:attr-link-href><a href=#attr-link-href>href</a></code> — Address of the <a href=#hyperlink id=the-link-element:hyperlink>hyperlink</a><dd><code id=the-link-element:attr-link-crossorigin><a href=#attr-link-crossorigin>crossorigin</a></code> — How the element handles crossorigin requests<dd><code id=the-link-element:attr-link-rel><a href=#attr-link-rel>rel</a></code> — Relationship between the document containing the hyperlink and the destination resource<dd><code id=the-link-element:attr-link-media><a href=#attr-link-media>media</a></code> — Applicable media<dd><code id=the-link-element:attr-link-hreflang><a href=#attr-link-hreflang>hreflang</a></code> — Language of the linked resource<dd><code id=the-link-element:attr-link-type><a href=#attr-link-type>type</a></code> — Hint for the type of the referenced resource<dd><code id=the-link-element:attr-link-sizes><a href=#attr-link-sizes>sizes</a></code> — Sizes of the icons (for <code id=the-link-element:attr-link-rel-2><a href=#attr-link-rel>rel</a></code>="<code id=the-link-element:rel-icon><a href=#rel-icon>icon</a></code>")<dd>Also, the <code id=the-link-element:attr-link-title><a href=#attr-link-title>title</a></code> attribute <a href=#attr-link-title id=the-link-element:attr-link-title-2>has special semantics</a> on this element: Title of the link; alternative style sheet set name.<dt><a href=#concept-element-dom id=the-link-element:concept-element-dom>DOM interface</a>:<dd>
<pre class=idl>interface <dfn id=htmllinkelement>HTMLLinkElement</dfn> : <a href=#htmlelement id=the-link-element:htmlelement>HTMLElement</a> {
attribute DOMString <a href=#dom-link-href id=the-link-element:dom-link-href>href</a>;
attribute DOMString <a href=#dom-link-crossorigin id=the-link-element:dom-link-crossorigin>crossOrigin</a>;
attribute DOMString? <a href=#dom-link-crossorigin id=the-link-element:dom-link-crossorigin>crossOrigin</a>;
attribute DOMString <a href=#dom-link-rel id=the-link-element:dom-link-rel>rel</a>;
readonly attribute <a href=#domtokenlist id=the-link-element:domtokenlist>DOMTokenList</a> <a href=#dom-link-rellist id=the-link-element:dom-link-rellist>relList</a>;
attribute DOMString <a href=#dom-link-media id=the-link-element:dom-link-media>media</a>;
Expand Down Expand Up @@ -9298,8 +9304,7 @@ <h4 id=the-link-element>4.2.4 The <dfn><code>link</code></dfn> element</h4>
content attributes of the same name.</p>

<p>The <dfn id=dom-link-crossorigin><code>crossOrigin</code></dfn> IDL attribute must
<a href=#reflect id=the-link-element:reflect-2>reflect</a> the <code id=the-link-element:attr-link-crossorigin-3><a href=#attr-link-crossorigin>crossorigin</a></code> content attribute,
<a href=#limited-to-only-known-values id=the-link-element:limited-to-only-known-values>limited to only known values</a>.</p>
<a href=#reflect id=the-link-element:reflect-2>reflect</a> the <code id=the-link-element:attr-link-crossorigin-3><a href=#attr-link-crossorigin>crossorigin</a></code> content attribute.</p>

<p>The IDL attribute <dfn id=dom-link-rellist><code>relList</code></dfn> must <a href=#reflect id=the-link-element:reflect-3>reflect</a> the <code id=the-link-element:attr-link-rel-11><a href=#attr-link-rel>rel</a></code> content attribute.</p>

Expand Down Expand Up @@ -21787,7 +21792,7 @@ <h4 id=media-elements>4.8.14 Media elements</h4>
attribute DOMString <a href=#dom-media-src id=media-elements:dom-media-src>src</a>;
attribute <a href=#mediaprovider id=media-elements:mediaprovider>MediaProvider</a>? <a href=#dom-media-srcobject id=media-elements:dom-media-srcobject>srcObject</a>;
readonly attribute DOMString <a href=#dom-media-currentsrc id=media-elements:dom-media-currentsrc>currentSrc</a>;
attribute DOMString <a href=#dom-media-crossorigin id=media-elements:dom-media-crossorigin>crossOrigin</a>;
attribute DOMString? <a href=#dom-media-crossorigin id=media-elements:dom-media-crossorigin>crossOrigin</a>;
const unsigned short <a href=#dom-media-network_empty id=media-elements:dom-media-network_empty>NETWORK_EMPTY</a> = 0;
const unsigned short <a href=#dom-media-network_idle id=media-elements:dom-media-network_idle>NETWORK_IDLE</a> = 1;
const unsigned short <a href=#dom-media-network_loading id=media-elements:dom-media-network_loading>NETWORK_LOADING</a> = 2;
Expand Down Expand Up @@ -21961,8 +21966,7 @@ <h5 id=location-of-the-media-resource>4.8.14.2 Location of the media resource</h
name.</p>

<p>The <dfn id=dom-media-crossorigin><code>crossOrigin</code></dfn> IDL attribute must
<a href=#reflect id=location-of-the-media-resource:reflect-2>reflect</a> the <code id=location-of-the-media-resource:attr-media-crossorigin><a href=#attr-media-crossorigin>crossorigin</a></code> content
attribute, <a href=#limited-to-only-known-values id=location-of-the-media-resource:limited-to-only-known-values>limited to only known values</a>.</p>
<a href=#reflect id=location-of-the-media-resource:reflect-2>reflect</a> the <code id=location-of-the-media-resource:attr-media-crossorigin><a href=#attr-media-crossorigin>crossorigin</a></code> content attribute.</p>



Expand Down Expand Up @@ -44201,7 +44205,7 @@ <h4 id=the-script-element>4.12.1 The <dfn id=script><code>script</code></dfn> el
attribute DOMString <a href=#dom-script-charset id=the-script-element:dom-script-charset>charset</a>;
attribute boolean <a href=#dom-script-async id=the-script-element:dom-script-async>async</a>;
attribute boolean <a href=#dom-script-defer id=the-script-element:dom-script-defer>defer</a>;
attribute DOMString <a href=#dom-script-crossorigin id=the-script-element:dom-script-crossorigin>crossOrigin</a>;
attribute DOMString? <a href=#dom-script-crossorigin id=the-script-element:dom-script-crossorigin>crossOrigin</a>;
attribute DOMString <a href=#dom-script-text id=the-script-element:dom-script-text>text</a>;

// <a href="#HTMLScriptElement-partial">also has obsolete members</a>
Expand Down Expand Up @@ -44725,8 +44729,7 @@ <h4 id=the-script-element>4.12.1 The <dfn id=script><code>script</code></dfn> el
content attributes of the same name.</p>

<p>The <dfn id=dom-script-crossorigin><code>crossOrigin</code></dfn> IDL attribute must
<a href=#reflect id=the-script-element:reflect-2>reflect</a> the <code id=the-script-element:attr-script-crossorigin-6><a href=#attr-script-crossorigin>crossorigin</a></code> content
attribute, <a href=#limited-to-only-known-values id=the-script-element:limited-to-only-known-values>limited to only known values</a>.</p>
<a href=#reflect id=the-script-element:reflect-2>reflect</a> the <code id=the-script-element:attr-script-crossorigin-6><a href=#attr-script-crossorigin>crossorigin</a></code> content attribute.</p>

<p>The <dfn id=dom-script-async><code>async</code></dfn> IDL attribute controls whether the
element will execute asynchronously or not. If the element's <a href=#force-async id=the-script-element:force-async-6>"force-async"</a> flag is
Expand Down

0 comments on commit 7d3b61c

Please sign in to comment.