Skip to content

Commit d1ea702

Browse files
author
Simon Pieters
committed
[cssom] Serialize the i flag in attribute selectors. Fixes https://www.w3.org/Bugs/Public/show_bug.cgi?id=25488
1 parent 15f9c2b commit d1ea702

2 files changed

Lines changed: 16 additions & 10 deletions

File tree

cssom/Overview.html

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<h1>CSS Object Model (CSSOM)</h1>
1717

1818

19-
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 6 February 2014</h2>
19+
<h2 class="no-num no-toc" id="w3c-doctype">Editor's Draft 28 April 2014</h2>
2020

2121
<dl>
2222

@@ -90,7 +90,7 @@ <h2 class="no-num no-toc" id="sotd">Status of This Document</h2>
9090
can be found in the
9191
<a href="http://www.w3.org/TR/">W3C technical reports index at http://www.w3.org/TR/.</a></em>
9292

93-
<p class="dontpublish">This is the 6 February 2014 Editor's Draft of CSSOM. Please send comments to
93+
<p class="dontpublish">This is the 28 April 2014 Editor's Draft of CSSOM. Please send comments to
9494
<a href="mailto:www-style@w3.org?subject=%5Bcssom%5D%20">www-style@w3.org</a>
9595
(<a href="http://lists.w3.org/Archives/Public/www-style/">archived</a>)
9696
with <samp>[cssom]</samp> at the start of the subject line.
@@ -598,9 +598,9 @@ <h3 id="the-medialist-interface"><span class="secno">4.4 </span>The <code title=
598598
void <a href="#dom-medialist-deletemedium" title="dom-MediaList-deleteMedium">deleteMedium</a>(DOMString medium);
599599
};</pre>
600600

601-
<p>The object's <a class="external" data-anolis-spec="webidl" href="http://dev.w3.org/2006/webapi/WebIDL/#dfn-supported-property-indices">supported property indices</a> are the numbers in the range zero to one less than the number of media queries
601+
<p>The object's <a class="external" data-anolis-spec="webidl" href="http://heycam.github.io/webidl/#dfn-supported-property-indices">supported property indices</a> are the numbers in the range zero to one less than the number of media queries
602602
in the <a href="#collection-of-media-queries">collection of media queries</a> represented by the collection. If there are no such media queries, then there are no
603-
<a class="external" data-anolis-spec="webidl" href="http://dev.w3.org/2006/webapi/WebIDL/#dfn-supported-property-indices">supported property indices</a>.
603+
<a class="external" data-anolis-spec="webidl" href="http://heycam.github.io/webidl/#dfn-supported-property-indices">supported property indices</a>.
604604

605605
<p>To <dfn id="create-a-medialist-object">create a <code>MediaList</code> object</dfn> with a string <var>text</var>, run the following steps:
606606
<ol>
@@ -763,6 +763,9 @@ <h3 id="serializing-selectors"><span class="secno">5.2 </span>Serializing Select
763763
by the <a href="#serialize-a-string" title="serialize a string">string escaped</a>
764764
attribute value, to <var>s</var>.</li>
765765

766+
<li><p>If the attribute selector has the case-sensitivity flag present,
767+
append "<code title=""> i</code>" (U+0020 U+0069) to <var>s</var>.
768+
766769
<li><p>Append "<code title="">]</code>" (U+005D) to
767770
<var>s</var>.</li>
768771
</ol>
@@ -1197,9 +1200,9 @@ <h4 id="the-stylesheetlist-interface"><span class="secno">6.2.2 </span>The <code
11971200
readonly attribute unsigned long <a href="#dom-stylesheetlist-length" title="dom-StyleSheetList-length">length</a>;
11981201
};</pre>
11991202

1200-
<p>The object's <a class="external" data-anolis-spec="webidl" href="http://dev.w3.org/2006/webapi/WebIDL/#dfn-supported-property-indices">supported property indices</a> are the numbers in the range zero to one less than the number of
1203+
<p>The object's <a class="external" data-anolis-spec="webidl" href="http://heycam.github.io/webidl/#dfn-supported-property-indices">supported property indices</a> are the numbers in the range zero to one less than the number of
12011204
<a href="#css-style-sheet" title="CSS style sheet">CSS style sheets</a> represented by the collection. If there are no such <a href="#css-style-sheet" title="CSS style sheet">CSS style sheets</a>,
1202-
then there are no <a class="external" data-anolis-spec="webidl" href="http://dev.w3.org/2006/webapi/WebIDL/#dfn-supported-property-indices">supported property indices</a>.
1205+
then there are no <a class="external" data-anolis-spec="webidl" href="http://heycam.github.io/webidl/#dfn-supported-property-indices">supported property indices</a>.
12031206

12041207
<p>The <dfn id="dom-stylesheetlist-item" title="dom-StyleSheetList-item"><code>item(<var>index</var>)</code></dfn> method must return the <var>index</var>th <a href="#css-style-sheet">CSS style
12051208
sheet</a> in the collection. If there is no <var>index</var>th object in the collection, then the method must return null.
@@ -1883,9 +1886,9 @@ <h4 id="the-cssrulelist-interface"><span class="secno">6.4.1 </span>The <code ti
18831886
readonly attribute unsigned long <a href="#dom-cssrulelist-length" title="dom-CSSRuleList-length">length</a>;
18841887
};</pre>
18851888

1886-
<p>The object's <a class="external" data-anolis-spec="webidl" href="http://dev.w3.org/2006/webapi/WebIDL/#dfn-supported-property-indices">supported property indices</a> are the numbers in the range zero to one less than the number of
1889+
<p>The object's <a class="external" data-anolis-spec="webidl" href="http://heycam.github.io/webidl/#dfn-supported-property-indices">supported property indices</a> are the numbers in the range zero to one less than the number of
18871890
<code><a href="#cssrule">CSSRule</a></code> objects represented by the collection. If there are no such <code><a href="#cssrule">CSSRule</a></code> objects, then there are no
1888-
<a class="external" data-anolis-spec="webidl" href="http://dev.w3.org/2006/webapi/WebIDL/#dfn-supported-property-indices">supported property indices</a>.
1891+
<a class="external" data-anolis-spec="webidl" href="http://heycam.github.io/webidl/#dfn-supported-property-indices">supported property indices</a>.
18891892

18901893
<p>The <dfn id="dom-cssrulelist-item" title="dom-CSSRuleList-item"><code>item(<var>index</var>)</code></dfn> method must return the <var>index</var>th <code><a href="#cssrule">CSSRule</a></code>
18911894
object in the collection. If there is no <var>index</var>th object in the collection, then the method must return null.
@@ -2357,9 +2360,9 @@ <h4 id="the-cssstyledeclaration-interface"><span class="secno">6.6.1 </span>The
23572360
attribute DOMString <a href="#dom-cssstyledeclaration-cssfloat" title="dom-CSSStyleDeclaration-cssFloat">cssFloat</a>;<!-- setProperty's value arg has [TreatNullAs=EmptyString] -->
23582361
};</pre>
23592362

2360-
<p>The object's <a class="external" data-anolis-spec="webidl" href="http://dev.w3.org/2006/webapi/WebIDL/#dfn-supported-property-indices">supported property indices</a> are the numbers in the range zero to one less than the number of
2363+
<p>The object's <a class="external" data-anolis-spec="webidl" href="http://heycam.github.io/webidl/#dfn-supported-property-indices">supported property indices</a> are the numbers in the range zero to one less than the number of
23612364
<a href="#css-declaration" title="CSS declaration">CSS declarations</a> in the <a href="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a>. If there are no such
2362-
<a href="#css-declaration" title="CSS declaration">CSS declarations</a>, then there are no <a class="external" data-anolis-spec="webidl" href="http://dev.w3.org/2006/webapi/WebIDL/#dfn-supported-property-indices">supported property indices</a>.
2365+
<a href="#css-declaration" title="CSS declaration">CSS declarations</a>, then there are no <a class="external" data-anolis-spec="webidl" href="http://heycam.github.io/webidl/#dfn-supported-property-indices">supported property indices</a>.
23632366

23642367
<p>The <dfn id="dom-cssstyledeclaration-csstext" title="dom-CSSStyleDeclaration-cssText"><code>cssText</code></dfn> attribute must return the result of
23652368
<a href="#serialize-a-css-declaration-block" title="serialize a CSS declaration block">serializing</a> the <a href="#concept-css-declaration-block-declarations" title="concept-css-declaration-block-declarations">declarations</a>.</p>

cssom/Overview.src.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -680,6 +680,9 @@ <h3>Serializing Selectors</h3>
680680
by the <span title="serialize a string">string escaped</span>
681681
attribute value, to <var>s</var>.</p></li>
682682

683+
<li><p>If the attribute selector has the case-sensitivity flag present,
684+
append "<code title> i</code>" (U+0020 U+0069) to <var>s</var>.
685+
683686
<li><p>Append "<code title>]</code>" (U+005D) to
684687
<var>s</var>.</p></li>
685688
</ol>

0 commit comments

Comments
 (0)