- From: poot <cvsmail@w3.org>
- Date: Thu, 20 Oct 2011 17:48:01 -0400
- To: public-html-diffs@w3.org
hixie: xref (whatwg r6716) http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.5383&r2=1.5384&f=h http://html5.org/tools/web-apps-tracker?from=6715&to=6716 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.5383 retrieving revision 1.5384 diff -u -d -r1.5383 -r1.5384 --- Overview.html 20 Oct 2011 20:06:14 -0000 1.5383 +++ Overview.html 20 Oct 2011 21:47:32 -0000 1.5384 @@ -3361,7 +3361,19 @@ Content</cite> specification to define the interaction of certain HTML elements with the CSS 'element()' function. <a href="#refsCSSIMAGES">[CSSIMAGES]</a></p> - </dd> + <p>Support for the CSS Object Model is required for + implementations that support scripting. The following features and + terms are defined in the CSSOM specifications: <a href="#refsCSSOM">[CSSOM]</a> <a href="#refsCSSOMVIEW">[CSSOMVIEW]</a> + + <ul class="brief"><li><dfn id="linkstyle"><code>LinkStyle</code></dfn></li> + <li><dfn id="cssstyledeclaration"><code>CSSStyleDeclaration</code></dfn></li> + <li><dfn id="stylesheet"><code>StyleSheet</code></dfn></li> + <li><dfn id="dom-linkstyle-sheet" title="dom-linkstyle-sheet"><code>sheet</code></dfn></li> + <li><dfn id="dom-stylesheet-disabled" title="dom-stylesheet-disabled"><code>disabled</code></dfn></li> + <li><dfn id="alternative-style-sheet-sets">Alternative style sheet sets</dfn> and the <dfn id="preferred-style-sheet-set">preferred style sheet set</dfn></li> + <li><dfn id="serializing-a-css-value">Serializing a CSS value</dfn></li> + <li><dfn id="scroll-an-element-into-view">Scroll an element into view</dfn></li> + </ul></dd> </dl><p>This specification does not <em>require</em> support of any @@ -8521,7 +8533,7 @@ readonly attribute boolean? <a href="#dom-command-ro-commanddisabled" title="dom-command-ro-commandDisabled">commandDisabled</a>; readonly attribute boolean? <a href="#dom-command-ro-commandchecked" title="dom-command-ro-commandChecked">commandChecked</a>; // <span>styling</span> - readonly attribute <span>CSSStyleDeclaration</span> <a href="#dom-style" title="dom-style">style</a>; + readonly attribute <a href="#cssstyledeclaration">CSSStyleDeclaration</a> <a href="#dom-style" title="dom-style">style</a>; // <a href="#event-handler-idl-attributes">event handler IDL attributes</a> [TreatNonCallableAsNull] attribute <a href="#function">Function</a>? <a href="#handler-onabort" title="handler-onabort">onabort</a>; @@ -9047,19 +9059,19 @@ or to convey meaning that is otherwise not included in the document, is non-conforming. (To hide and show content, use the <code title="attr-hidden"><a href="#the-hidden-attribute">hidden</a></code> attribute.)<hr><dl class="domintro"><dt><var title="">element</var> . <code title="dom-style"><a href="#dom-style">style</a></code></dt> <dd> - <p>Returns a <code>CSSStyleDeclaration</code> object for the element's <code title="attr-style"><a href="#the-style-attribute">style</a></code> attribute.</p> + <p>Returns a <code><a href="#cssstyledeclaration">CSSStyleDeclaration</a></code> object for the element's <code title="attr-style"><a href="#the-style-attribute">style</a></code> attribute.</p> </dd> </dl><div class="impl"> <p>The <dfn id="dom-style" title="dom-style"><code>style</code></dfn> IDL attribute - must return a <code>CSSStyleDeclaration</code> whose value + must return a <code><a href="#cssstyledeclaration">CSSStyleDeclaration</a></code> whose value represents the declarations specified in the attribute, if - present. Mutating the <code>CSSStyleDeclaration</code> object must + present. Mutating the <code><a href="#cssstyledeclaration">CSSStyleDeclaration</a></code> object must create a <code title="attr-style"><a href="#the-style-attribute">style</a></code> attribute on the element (if there isn't one already) and then change its value to be a value representing the serialized form of the - <code>CSSStyleDeclaration</code> object. The same object must be + <code><a href="#cssstyledeclaration">CSSStyleDeclaration</a></code> object. The same object must be returned each time. <a href="#refsCSSOM">[CSSOM]</a></p> </div><div class="example"> @@ -11186,7 +11198,7 @@ attribute DOMString <a href="#dom-link-type" title="dom-link-type">type</a>; [PutForwards=<span title="dom-DOMSettableTokenList-value">value</span>] readonly attribute <a href="#domsettabletokenlist">DOMSettableTokenList</a> <a href="#dom-link-sizes" title="dom-link-sizes">sizes</a>; }; -<a href="#htmllinkelement">HTMLLinkElement</a> implements <span>LinkStyle</span>;</pre> +<a href="#htmllinkelement">HTMLLinkElement</a> implements <a href="#linkstyle">LinkStyle</a>;</pre> </dd> </dl><p>The <code><a href="#the-link-element">link</a></code> element allows authors to link their document to other resources.<p>The destination of the link(s) is given by the <dfn id="attr-link-href" title="attr-link-href"><code>href</code></dfn> attribute, which must @@ -11418,7 +11430,7 @@ attribute gives the title of the link. With one exception, it is purely advisory. The value is text. The exception is for style sheet links, where the <code title="attr-link-title"><a href="#attr-link-title">title</a></code> - attribute defines <span>alternative style sheet sets</span>.<p class="note">The <code title="attr-link-title"><a href="#attr-link-title">title</a></code> + attribute defines <a href="#alternative-style-sheet-sets">alternative style sheet sets</a>.<p class="note">The <code title="attr-link-title"><a href="#attr-link-title">title</a></code> attribute on <code><a href="#the-link-element">link</a></code> elements differs from the global <code title="attr-title"><a href="#the-title-attribute">title</a></code> attribute of most other elements in that a link without a title does not inherit the title @@ -11445,7 +11457,7 @@ style sheet link, then the <code title="dom-link-disabled"><a href="#dom-link-disabled">disabled</a></code> attribute behaves as defined <a href="#dom-linkstyle-disabled" title="dom-linkstyle-disabled">for the alternative style sheets DOM</a>. For all other <code><a href="#the-link-element">link</a></code> elements it - always return false and does nothing on setting.</p><p>The <code>LinkStyle</code> interface is also implemented by + always return false and does nothing on setting.</p><p>The <code><a href="#linkstyle">LinkStyle</a></code> interface is also implemented by this element; the <a href="#styling">styling processing model</a> defines how. <a href="#refsCSSOM">[CSSOM]</a><div class="example"> @@ -11879,8 +11891,8 @@ <dd> - <p>This pragma sets the name of the default <span title="alternative style sheet sets">alternative style sheet - set</span>.</p> + <p>This pragma sets the name of the default <a href="#alternative-style-sheet-sets" title="alternative style sheet sets">alternative style sheet + set</a>.</p> <div class="impl"> @@ -11888,7 +11900,7 @@ attribute's value is the empty string, then abort these steps.</li> - <li><p>Set the <span>preferred style sheet set</span> to the + <li><p>Set the <a href="#preferred-style-sheet-set">preferred style sheet set</a> to the value of the element's <code title="attr-meta-content"><a href="#attr-meta-content">content</a></code> attribute. <a href="#refsCSSOM">[CSSOM]</a></li> </ol></div> @@ -12271,7 +12283,7 @@ attribute DOMString <a href="#dom-style-type" title="dom-style-type">type</a>; attribute boolean <a href="#dom-style-scoped" title="dom-style-scoped">scoped</a>; }; -<a href="#htmlstyleelement">HTMLStyleElement</a> implements <span>LinkStyle</span>;</pre> +<a href="#htmlstyleelement">HTMLStyleElement</a> implements <a href="#linkstyle">LinkStyle</a>;</pre> </dd> </dl><p>The <code><a href="#the-style-element">style</a></code> element allows authors to embed style information in their documents. The <code><a href="#the-style-element">style</a></code> element is @@ -12336,8 +12348,8 @@ embedded font.</p> </div><p id="title-on-style">The <dfn id="attr-style-title" title="attr-style-title"><code>title</code></dfn> attribute on - <code><a href="#the-style-element">style</a></code> elements defines <span>alternative style sheet - sets</span>. If the <code><a href="#the-style-element">style</a></code> element has no <code title="attr-style-title"><a href="#attr-style-title">title</a></code> attribute, then it has no + <code><a href="#the-style-element">style</a></code> elements defines <a href="#alternative-style-sheet-sets">alternative style sheet + sets</a>. If the <code><a href="#the-style-element">style</a></code> element has no <code title="attr-style-title"><a href="#attr-style-title">title</a></code> attribute, then it has no title; the <code title="attr-title"><a href="#the-title-attribute">title</a></code> attribute of ancestors does not apply to the <code><a href="#the-style-element">style</a></code> element. <a href="#refsCSSOM">[CSSOM]</a><p class="note">The <code title="attr-style-title"><a href="#attr-style-title">title</a></code> attribute on <code><a href="#the-style-element">style</a></code> elements, like the <code title="attr-link-title"><a href="#attr-link-title">title</a></code> attribute on <code><a href="#the-link-element">link</a></code> @@ -12400,7 +12412,7 @@ </div><p>The <dfn id="dom-style-disabled" title="dom-style-disabled"><code>disabled</code></dfn> IDL attribute behaves as defined <a href="#dom-linkstyle-disabled" title="dom-linkstyle-disabled">for the alternative style sheets - DOM</a>.<p>The <code>LinkStyle</code> interface is also implemented by + DOM</a>.<p>The <code><a href="#linkstyle">LinkStyle</a></code> interface is also implemented by this element; the <a href="#styling">styling processing model</a> defines how. <a href="#refsCSSOM">[CSSOM]</a><div class="example"> @@ -12427,21 +12439,21 @@ </div><h4 id="styling"><span class="secno">4.2.7 </span><dfn title="styling processing model">Styling</dfn></h4><p>The <code><a href="#the-link-element">link</a></code> and <code><a href="#the-style-element">style</a></code> elements can provide styling information for the user agent to use when rendering the - document. The DOM Styling specification specifies what styling + document. The CSS and CSSOM specifications specify what styling information is to be used by the user agent and how it is to be - used. <a href="#refsCSSOM">[CSSOM]</a><p>The <code><a href="#the-style-element">style</a></code> and <code><a href="#the-link-element">link</a></code> elements implement - the <code>LinkStyle</code> interface. <a href="#refsCSSOM">[CSSOM]</a><div class="impl"> + used. <a href="#refsCSS">[CSS]</a> <a href="#refsCSSOM">[CSSOM]</a><p>The <code><a href="#the-style-element">style</a></code> and <code><a href="#the-link-element">link</a></code> elements implement + the <code><a href="#linkstyle">LinkStyle</a></code> interface. <a href="#refsCSSOM">[CSSOM]</a><div class="impl"> <p>For <code><a href="#the-style-element">style</a></code> elements, if the user agent does not - support the specified styling language, then the <code title="dom-LinkStyle-sheet">sheet</code> attribute of the element's - <code>LinkStyle</code> interface must return null. Similarly, + support the specified styling language, then the <code title="dom-LinkStyle-sheet"><a href="#dom-linkstyle-sheet">sheet</a></code> attribute of the element's + <code><a href="#linkstyle">LinkStyle</a></code> interface must return null. Similarly, <code><a href="#the-link-element">link</a></code> elements that do not represent <a href="#link-type-stylesheet" title="rel-stylesheet">external resource links that contribute to the styling processing model</a> (i.e. that do not have a <code title="rel-stylesheet"><a href="#link-type-stylesheet">stylesheet</a></code> keyword in their <code title="attr-link-rel"><a href="#attr-link-rel">rel</a></code> attribute), or for which <a href="#the-link-is-an-alternative-stylesheet">the link is an alternative stylesheet</a> but whose <code title="dom-title"><a href="#dom-title">title</a></code> content attribute is absent or empty, - must have their <code>LinkStyle</code> interface's <code title="dom-LinkStyle-sheet">sheet</code> attribute return null.</p> + must have their <code><a href="#linkstyle">LinkStyle</a></code> interface's <code title="dom-LinkStyle-sheet"><a href="#dom-linkstyle-sheet">sheet</a></code> attribute return null.</p> - <p>Otherwise, the <code>LinkStyle</code> interface's <code title="dom-LinkStyle-sheet">sheet</code> attribute must return a - <code>StyleSheet</code> object with the following properties: <a href="#refsCSSOM">[CSSOM]</a></p> + <p>Otherwise, the <code><a href="#linkstyle">LinkStyle</a></code> interface's <code title="dom-LinkStyle-sheet"><a href="#dom-linkstyle-sheet">sheet</a></code> attribute must return a + <code><a href="#stylesheet">StyleSheet</a></code> object with the following properties: <a href="#refsCSSOM">[CSSOM]</a></p> <dl><dt>The style sheet type</dt> @@ -12472,7 +12484,7 @@ attribute is present and has a non-empty value. If the attribute is absent or its value is the empty string, then the style sheet does not have a title (it is the empty string). The title is used for - defining <span>alternative style sheet sets</span>.</dd> + defining <a href="#alternative-style-sheet-sets">alternative style sheet sets</a>.</dd> <dt>The style sheet alternate flag</dt> @@ -12484,9 +12496,9 @@ <p>The <dfn id="dom-linkstyle-disabled" title="dom-LinkStyle-disabled"><code>disabled</code></dfn> IDL attribute on <code><a href="#the-link-element">link</a></code> and <code><a href="#the-style-element">style</a></code> elements must - return false and do nothing on setting, if the <code title="dom-linkstyle-sheet">sheet</code> attribute of their - <code>LinkStyle</code> interface is null. Otherwise, it must return - the value of the <code>StyleSheet</code> interface's <code title="dom-stylesheet-disabled">disabled</code> attribute on + return false and do nothing on setting, if the <code title="dom-linkstyle-sheet"><a href="#dom-linkstyle-sheet">sheet</a></code> attribute of their + <code><a href="#linkstyle">LinkStyle</a></code> interface is null. Otherwise, it must return + the value of the <code><a href="#stylesheet">StyleSheet</a></code> interface's <code title="dom-stylesheet-disabled"><a href="#dom-stylesheet-disabled">disabled</a></code> attribute on getting, and forward the new value to that same attribute on setting.</p> @@ -42722,8 +42734,8 @@ into a document">inserted into a document</a>, whichever happens last. If the resource is <a href="#the-link-is-an-alternative-stylesheet" title="the link is an alternative stylesheet">an alternative stylesheet</a> then the user agent may - defer obtaining the resource until it is part of the <span>preferred - style sheet set</span>. <a href="#refsCSSOM">[CSSOM]</a></p> + defer obtaining the resource until it is part of the <a href="#preferred-style-sheet-set">preferred + style sheet set</a>. <a href="#refsCSSOM">[CSSOM]</a></p> <p><strong>Quirk</strong>: If the document has been set to <a href="#quirks-mode">quirks mode</a>, has the <a href="#same-origin">same origin</a> as the <a href="#url">URL</a> of the external resource<!-- CVE-2010-0654 -->, and @@ -47180,7 +47192,7 @@ <hr><p>When the user agent is required to <dfn id="scroll-to-the-fragment-identifier">scroll to the fragment identifier</dfn>, it must change the scrolling position of the - document using the <span>scroll an element into view</span> + document using the <a href="#scroll-an-element-into-view">scroll an element into view</a> algorithm defined in the CSSOM View specification, or perform some other action, such that <a href="#the-indicated-part-of-the-document">the indicated part of the document</a> is brought to the user's attention. If there is no
Received on Thursday, 20 October 2011 21:48:04 UTC