Skip to content

Commit 5dec268

Browse files
committed
consistify
1 parent a68a6f1 commit 5dec268

3 files changed

Lines changed: 70 additions & 73 deletions

File tree

cssom/Overview.html

Lines changed: 20 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -2224,12 +2224,11 @@ <h4 id="the-cssstyledeclaration-interface"><span class="secno">6.5.1 </span>The
22242224

22252225
<p>The
22262226
<dfn id="dom-cssstyledeclaration-csstext" title="dom-CSSStyleDeclaration-cssText"><code>cssText</code></dfn>
2227-
attribute must, on getting, return the result of
2227+
attribute must return the result of
22282228
<a href="#serialize-a-css-declaration-block" title="serialize a CSS declaration block">serializing</a> the
22292229
<a href="#css-declaration-block-declarations">CSS declaration block declarations</a>.</p>
22302230

2231-
<p>On setting the <code title="">cssText</code> attribute these steps
2232-
must be run:</p>
2231+
<p>Setting the <code title="">cssText</code> attribute must run these steps:
22332232

22342233
<ol>
22352234
<li><p>If the <a href="#css-declaration-block-readonly-flag">CSS declaration block readonly flag</a> is true
@@ -2253,18 +2252,18 @@ <h4 id="the-cssstyledeclaration-interface"><span class="secno">6.5.1 </span>The
22532252

22542253
<p>The
22552254
<dfn id="dom-cssstyledeclaration-item" title="dom-CSSStyleDeclaration-item"><code>item(<var title="">index</var>)</code></dfn>
2256-
method, when invoked, <span class="XXX">...</span>.</p>
2255+
method must <span class="XXX">...</span>.</p>
22572256
<!-- returns the name of property at position index. -->
22582257

22592258

22602259
<p>The
2261-
<dfn id="dom-cssstyledeclaration-getpropertyvalue" title="dom-CSSStyleDeclaration-getPropertyValue"><code>getPropertyValue(<var title="">property</var>)</code></dfn>
2262-
method, when invoked, <span class="XXX">...</span>.</p>
2260+
<dfn id="dom-cssstyledeclaration-getpropertyvalue" title="dom-CSSStyleDeclaration-getPropertyValue"><code>getPropertyValue(<var>property</var>)</code></dfn>
2261+
method must <span class="XXX">...</span>.</p>
22632262
<!-- Once we have defined how everything will be canonicalized we can start
22642263
thinking about this... --><p></p>
22652264

22662265
<p>The
2267-
<dfn id="dom-cssstyledeclaration-getpropertypriority" title="dom-CSSStyleDeclaration-getPropertyPriority"><code>getPropertyPriority(<var title="">property</var>)</code></dfn>
2266+
<dfn id="dom-cssstyledeclaration-getpropertypriority" title="dom-CSSStyleDeclaration-getPropertyPriority"><code>getPropertyPriority(<var>property</var>)</code></dfn>
22682267
method, when invoked, if <var title="">property</var> is an
22692268
<a class="external" href="http://dvcs.w3.org/hg/domcore/raw-file/tip/Overview.html#ascii-case-insensitive">ASCII case-insensitive</a> match for a
22702269
property that has a priority user agents must return the canonical
@@ -2275,9 +2274,9 @@ <h4 id="the-cssstyledeclaration-interface"><span class="secno">6.5.1 </span>The
22752274
the return value would be "<code title="">important</code>".</p>
22762275

22772276

2278-
<p>When the
2277+
<p>The
22792278
<dfn id="dom-cssstyledeclaration-setproperty" title="dom-CSSStyleDeclaration-setProperty"><code>setProperty(<var>property</var>, <var>value</var>, <var>priority</var>)</code></dfn>
2280-
method is invoked these steps must be run:</p>
2279+
method must run these steps:
22812280

22822281
<ol>
22832282
<li><p>If the <a href="#css-declaration-block-readonly-flag">CSS declaration block readonly flag</a> is true
@@ -2314,9 +2313,9 @@ <h4 id="the-cssstyledeclaration-interface"><span class="secno">6.5.1 </span>The
23142313
<var title="">property</var> to <var title="">value</var>.</li>
23152314
</ol>
23162315

2317-
<p>When the
2318-
<dfn id="dom-cssstyledeclaration-removeproperty" title="dom-CSSStyleDeclaration-removeProperty"><code>removeProperty(<var title="">property</var>)</code></dfn>
2319-
method is invoked these steps must be run:</p>
2316+
<p>The
2317+
<dfn id="dom-cssstyledeclaration-removeproperty" title="dom-CSSStyleDeclaration-removeProperty"><code>removeProperty(<var>property</var>)</code></dfn>
2318+
method must run these steps:
23202319

23212320
<ol>
23222321
<li><p>If the <a href="#css-declaration-block-readonly-flag">CSS declaration block readonly flag</a> is true
@@ -2337,24 +2336,24 @@ <h4 id="the-cssstyledeclaration-interface"><span class="secno">6.5.1 </span>The
23372336

23382337
<p>The
23392338
<dfn id="dom-cssstyledeclaration-parentrule" title="dom-CSSStyleDeclaration-parentRule"><code>parentRule</code></dfn>
2340-
attribute must return the
2341-
<code><a href="#cssrule">CSSrule</a></code> object the <code><a href="#cssstyledeclaration">CSSStyleDeclaration</a></code> is object is
2342-
associated with or null if it is not associated with a
2343-
<code><a href="#cssrule">CSSrule</a></code> object.</p>
2339+
attribute must return the <code><a href="#cssrule">CSSrule</a></code> object the
2340+
<code><a href="#cssstyledeclaration">CSSStyleDeclaration</a></code> is object is associated with or null if
2341+
it is not associated with a <code><a href="#cssrule">CSSrule</a></code> object.</p>
23442342
<!-- XXX introduce a concept for this instead -->
23452343

2344+
<hr>
23462345

23472346
<p>For the table below, the IDL attribute in the first column
2348-
must, on getting return the result of invoking
2347+
must return the result of invoking
23492348
<code title="dom-CSSStyleDeclaration-getPropertyValue"><a href="#dom-cssstyledeclaration-getpropertyvalue">getPropertyValue()</a></code>
23502349
with as argument the CSS property given in the second column on the same
23512350
row.</p>
23522351

23532352
<p>Similarly for the table below, setting the IDL attribute in the
2354-
first column must invoke
2355-
<code title="dom-CSSStyleDeclaration-setProperty"><a href="#dom-cssstyledeclaration-setproperty">setProperty()</a></code> with as
2356-
first argument the CSS property given in the second column on the same
2357-
row, as second argument the given value, and no third argument. Any
2353+
first column must invoke
2354+
<code title="dom-CSSStyleDeclaration-setProperty"><a href="#dom-cssstyledeclaration-setproperty">setProperty()</a></code>
2355+
with as first argument the CSS property given in the second column on the
2356+
same row, as second argument the given value, and no third argument. Any
23582357
exceptions raised must be re-raised.</p>
23592358

23602359
<table>

cssom/Overview.src.html

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2142,13 +2142,12 @@ <h4>The <code title>CSSStyleDeclaration</code> Interface</h4>
21422142
};</pre>
21432143

21442144
<p>The
2145-
<dfn id="dom-cssstyledeclaration-csstext" title="dom-CSSStyleDeclaration-cssText"><code>cssText</code></dfn>
2146-
attribute must, on getting, return the result of
2145+
<dfn title="dom-CSSStyleDeclaration-cssText"><code>cssText</code></dfn>
2146+
attribute must return the result of
21472147
<span title="serialize a CSS declaration block">serializing</span> the
21482148
<span>CSS declaration block declarations</span>.</p>
21492149

2150-
<p>On setting the <code title>cssText</code> attribute these steps
2151-
must be run:</p>
2150+
<p>Setting the <code title>cssText</code> attribute must run these steps:
21522151

21532152
<ol>
21542153
<li><p>If the <span>CSS declaration block readonly flag</span> is true
@@ -2166,24 +2165,24 @@ <h4>The <code title>CSSStyleDeclaration</code> Interface</h4>
21662165

21672166
<!-- XXX WebIDL work -->
21682167
<p>The
2169-
<dfn id="dom-cssstyledeclaration-length" title="dom-CSSStyleDeclaration-length"><code>length</code></dfn>
2168+
<dfn title="dom-CSSStyleDeclaration-length"><code>length</code></dfn>
21702169
attribute must return the number of declarations in
21712170
the <span>collection of CSS declarations</span>.</p>
21722171

21732172
<p>The
2174-
<dfn id="dom-cssstyledeclaration-item" title="dom-CSSStyleDeclaration-item"><code>item(<var title>index</var>)</code></dfn>
2175-
method, when invoked, <span class="XXX">...</span>.</p>
2173+
<dfn title="dom-CSSStyleDeclaration-item"><code>item(<var title>index</var>)</code></dfn>
2174+
method must <span class="XXX">...</span>.</p>
21762175
<!-- returns the name of property at position index. -->
21772176

21782177

21792178
<p>The
2180-
<dfn id="dom-cssstyledeclaration-getpropertyvalue" title="dom-CSSStyleDeclaration-getPropertyValue"><code>getPropertyValue(<var title>property</var>)</code></dfn>
2181-
method, when invoked, <span class="XXX">...</span>.</p>
2179+
<dfn title="dom-CSSStyleDeclaration-getPropertyValue"><code>getPropertyValue(<var>property</var>)</code></dfn>
2180+
method must <span class="XXX">...</span>.</p>
21822181
<!-- Once we have defined how everything will be canonicalized we can start
21832182
thinking about this... --></p>
21842183

21852184
<p>The
2186-
<dfn id="dom-cssstyledeclaration-getpropertypriority" title="dom-CSSStyleDeclaration-getPropertyPriority"><code>getPropertyPriority(<var title>property</var>)</code></dfn>
2185+
<dfn title="dom-CSSStyleDeclaration-getPropertyPriority"><code>getPropertyPriority(<var>property</var>)</code></dfn>
21872186
method, when invoked, if <var title>property</var> is an
21882187
<span data-anolis-spec=dom>ASCII case-insensitive</span> match for a
21892188
property that has a priority user agents must return the canonical
@@ -2194,9 +2193,9 @@ <h4>The <code title>CSSStyleDeclaration</code> Interface</h4>
21942193
the return value would be "<code title>important</code>".</p>
21952194

21962195

2197-
<p>When the
2196+
<p>The
21982197
<dfn title="dom-CSSStyleDeclaration-setProperty"><code>setProperty(<var>property</var>, <var>value</var>, <var>priority</var>)</code></dfn>
2199-
method is invoked these steps must be run:</p>
2198+
method must run these steps:
22002199

22012200
<ol>
22022201
<li><p>If the <span>CSS declaration block readonly flag</span> is true
@@ -2233,9 +2232,9 @@ <h4>The <code title>CSSStyleDeclaration</code> Interface</h4>
22332232
<var title>property</var> to <var title>value</var>.</p></li>
22342233
</ol>
22352234

2236-
<p>When the
2237-
<dfn id="dom-cssstyledeclaration-removeproperty" title="dom-CSSStyleDeclaration-removeProperty"><code>removeProperty(<var title>property</var>)</code></dfn>
2238-
method is invoked these steps must be run:</p>
2235+
<p>The
2236+
<dfn title="dom-CSSStyleDeclaration-removeProperty"><code>removeProperty(<var>property</var>)</code></dfn>
2237+
method must run these steps:
22392238

22402239
<ol>
22412240
<li><p>If the <span>CSS declaration block readonly flag</span> is true
@@ -2250,30 +2249,30 @@ <h4>The <code title>CSSStyleDeclaration</code> Interface</h4>
22502249

22512250

22522251
<p>The
2253-
<dfn id="dom-cssstyledeclaration-values" title="dom-CSSStyleDeclaration-values"><code>values</code></dfn>
2252+
<dfn title="dom-CSSStyleDeclaration-values"><code>values</code></dfn>
22542253
attribute must return <span class="XXX">...</span></p>
22552254

22562255

22572256
<p>The
2258-
<dfn id="dom-cssstyledeclaration-parentrule" title="dom-CSSStyleDeclaration-parentRule"><code>parentRule</code></dfn>
2259-
attribute must return the
2260-
<code>CSSrule</code> object the <code>CSSStyleDeclaration</code> is object is
2261-
associated with or null if it is not associated with a
2262-
<code>CSSrule</code> object.</p>
2257+
<dfn title="dom-CSSStyleDeclaration-parentRule"><code>parentRule</code></dfn>
2258+
attribute must return the <code>CSSrule</code> object the
2259+
<code>CSSStyleDeclaration</code> is object is associated with or null if
2260+
it is not associated with a <code>CSSrule</code> object.</p>
22632261
<!-- XXX introduce a concept for this instead -->
22642262

2263+
<hr>
22652264

22662265
<p>For the table below, the IDL attribute in the first column
2267-
must, on getting return the result of invoking
2266+
must return the result of invoking
22682267
<code title="dom-CSSStyleDeclaration-getPropertyValue">getPropertyValue()</code>
22692268
with as argument the CSS property given in the second column on the same
22702269
row.</p>
22712270

22722271
<p>Similarly for the table below, setting the IDL attribute in the
2273-
first column must invoke
2274-
<code title="dom-CSSStyleDeclaration-setProperty">setProperty()</code> with as
2275-
first argument the CSS property given in the second column on the same
2276-
row, as second argument the given value, and no third argument. Any
2272+
first column must invoke
2273+
<code title="dom-CSSStyleDeclaration-setProperty">setProperty()</code>
2274+
with as first argument the CSS property given in the second column on the
2275+
same row, as second argument the given value, and no third argument. Any
22772276
exceptions raised must be re-raised.</p>
22782277

22792278
<table>

cssom/cssom-source

Lines changed: 25 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2021,13 +2021,12 @@ and
20212021
};</pre>
20222022

20232023
<p>The
2024-
<dfn id="dom-cssstyledeclaration-csstext" title="dom-CSSStyleDeclaration-cssText"><code>cssText</code></dfn>
2025-
attribute must, on getting, return the result of
2024+
<dfn title="dom-CSSStyleDeclaration-cssText"><code>cssText</code></dfn>
2025+
attribute must return the result of
20262026
<span title="serialize a CSS declaration block">serializing</span> the
20272027
<span>CSS declaration block declarations</span>.</p>
20282028

2029-
<p>On setting the <code title>cssText</code> attribute these steps
2030-
must be run:</p>
2029+
<p>Setting the <code title>cssText</code> attribute must run these steps:
20312030

20322031
<ol>
20332032
<li><p>If the <span>CSS declaration block readonly flag</span> is true
@@ -2045,24 +2044,24 @@ and
20452044

20462045
<!-- XXX WebIDL work -->
20472046
<p>The
2048-
<dfn id="dom-cssstyledeclaration-length" title="dom-CSSStyleDeclaration-length"><code>length</code></dfn>
2047+
<dfn title="dom-CSSStyleDeclaration-length"><code>length</code></dfn>
20492048
attribute must return the number of declarations in
20502049
the <span>collection of CSS declarations</span>.</p>
20512050

20522051
<p>The
2053-
<dfn id="dom-cssstyledeclaration-item" title="dom-CSSStyleDeclaration-item"><code>item(<var title>index</var>)</code></dfn>
2054-
method, when invoked, <span class="XXX">...</span>.</p>
2052+
<dfn title="dom-CSSStyleDeclaration-item"><code>item(<var title>index</var>)</code></dfn>
2053+
method must <span class="XXX">...</span>.</p>
20552054
<!-- returns the name of property at position index. -->
20562055

20572056

20582057
<p>The
2059-
<dfn id="dom-cssstyledeclaration-getpropertyvalue" title="dom-CSSStyleDeclaration-getPropertyValue"><code>getPropertyValue(<var title>property</var>)</code></dfn>
2060-
method, when invoked, <span class="XXX">...</span>.</p>
2058+
<dfn title="dom-CSSStyleDeclaration-getPropertyValue"><code>getPropertyValue(<var>property</var>)</code></dfn>
2059+
method must <span class="XXX">...</span>.</p>
20612060
<!-- Once we have defined how everything will be canonicalized we can start
20622061
thinking about this... --></p>
20632062

20642063
<p>The
2065-
<dfn id="dom-cssstyledeclaration-getpropertypriority" title="dom-CSSStyleDeclaration-getPropertyPriority"><code>getPropertyPriority(<var title>property</var>)</code></dfn>
2064+
<dfn title="dom-CSSStyleDeclaration-getPropertyPriority"><code>getPropertyPriority(<var>property</var>)</code></dfn>
20662065
method, when invoked, if <var title>property</var> is an
20672066
<span data-anolis-spec=dom>ASCII case-insensitive</span> match for a
20682067
property that has a priority user agents must return the canonical
@@ -2073,9 +2072,9 @@ and
20732072
the return value would be "<code title>important</code>".</p>
20742073

20752074

2076-
<p>When the
2075+
<p>The
20772076
<dfn title="dom-CSSStyleDeclaration-setProperty"><code>setProperty(<var>property</var>, <var>value</var>, <var>priority</var>)</code></dfn>
2078-
method is invoked these steps must be run:</p>
2077+
method must run these steps:
20792078

20802079
<ol>
20812080
<li><p>If the <span>CSS declaration block readonly flag</span> is true
@@ -2112,9 +2111,9 @@ and
21122111
<var title>property</var> to <var title>value</var>.</p></li>
21132112
</ol>
21142113

2115-
<p>When the
2116-
<dfn id="dom-cssstyledeclaration-removeproperty" title="dom-CSSStyleDeclaration-removeProperty"><code>removeProperty(<var title>property</var>)</code></dfn>
2117-
method is invoked these steps must be run:</p>
2114+
<p>The
2115+
<dfn title="dom-CSSStyleDeclaration-removeProperty"><code>removeProperty(<var>property</var>)</code></dfn>
2116+
method must run these steps:
21182117

21192118
<ol>
21202119
<li><p>If the <span>CSS declaration block readonly flag</span> is true
@@ -2129,30 +2128,30 @@ and
21292128

21302129

21312130
<p>The
2132-
<dfn id="dom-cssstyledeclaration-values" title="dom-CSSStyleDeclaration-values"><code>values</code></dfn>
2131+
<dfn title="dom-CSSStyleDeclaration-values"><code>values</code></dfn>
21332132
attribute must return <span class="XXX">...</span></p>
21342133

21352134

21362135
<p>The
2137-
<dfn id="dom-cssstyledeclaration-parentrule" title="dom-CSSStyleDeclaration-parentRule"><code>parentRule</code></dfn>
2138-
attribute must return the
2139-
<code>CSSrule</code> object the <code>CSSStyleDeclaration</code> is object is
2140-
associated with or null if it is not associated with a
2141-
<code>CSSrule</code> object.</p>
2136+
<dfn title="dom-CSSStyleDeclaration-parentRule"><code>parentRule</code></dfn>
2137+
attribute must return the <code>CSSrule</code> object the
2138+
<code>CSSStyleDeclaration</code> is object is associated with or null if
2139+
it is not associated with a <code>CSSrule</code> object.</p>
21422140
<!-- XXX introduce a concept for this instead -->
21432141

2142+
<hr>
21442143

21452144
<p>For the table below, the IDL attribute in the first column
2146-
must, on getting return the result of invoking
2145+
must return the result of invoking
21472146
<code title="dom-CSSStyleDeclaration-getPropertyValue">getPropertyValue()</code>
21482147
with as argument the CSS property given in the second column on the same
21492148
row.</p>
21502149

21512150
<p>Similarly for the table below, setting the IDL attribute in the
2152-
first column must invoke
2153-
<code title="dom-CSSStyleDeclaration-setProperty">setProperty()</code> with as
2154-
first argument the CSS property given in the second column on the same
2155-
row, as second argument the given value, and no third argument. Any
2151+
first column must invoke
2152+
<code title="dom-CSSStyleDeclaration-setProperty">setProperty()</code>
2153+
with as first argument the CSS property given in the second column on the
2154+
same row, as second argument the given value, and no third argument. Any
21562155
exceptions raised must be re-raised.</p>
21572156

21582157
<table>

0 commit comments

Comments
 (0)