Skip to content

Commit cf9764a

Browse files
committed
minor bugs
1 parent 479983f commit cf9764a

2 files changed

Lines changed: 58 additions & 60 deletions

File tree

cssom/Overview.html

Lines changed: 35 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@
2828
<div class=head>
2929
<h1 id=cssom>CSSOM</h1>
3030

31-
<h2 class="no-num no-toc" id="">Editor's Draft 17 March 2010</h2>
31+
<h2 class="no-num no-toc" id="">Editor's Draft 18 March 2010</h2>
3232

3333
<dl>
3434
<dt>This Version:
3535

3636
<dd><a
37-
href="http://www.w3.org/TR/2010/ED-cssom-20100317/">http://www.w3.org/TR/2010/ED-cssom-20100317/</a>
37+
href="http://www.w3.org/TR/2010/ED-cssom-20100318/">http://www.w3.org/TR/2010/ED-cssom-20100318/</a>
3838

3939
<dt>Latest Version:
4040

@@ -875,7 +875,7 @@ <h3 id=serializing-selectors><span class=secno>5.2. </span>Serializing
875875
<p>If <var title="">a</var> is zero let the value be <var
876876
title="">b</var> <a href="#serialize-a-css-value-component"
877877
title="serialize a CSS value component">serialized</a> as
878-
&lt;number>.
878+
&lt;integer>.
879879

880880
<li>
881881
<p>If <var title="">a</var> is one or minus one and <var
@@ -888,23 +888,23 @@ <h3 id=serializing-selectors><span class=secno>5.2. </span>Serializing
888888
(U+002B) if <var title="">b</var> is positive, followed by <var
889889
title="">b</var> <a href="#serialize-a-css-value-component"
890890
title="serialize a CSS value component">serialized</a> as
891-
&lt;number>.
891+
&lt;integer>.
892892

893893
<li>
894894
<p>If <var title="">b</var> is zero let the value be <var
895895
title="">a</var> <a href="#serialize-a-css-value-component"
896896
title="serialize a CSS value component">serialized</a> as
897-
&lt;number>, followed by "<code title="">n</code>" (U+006E).
897+
&lt;integer>, followed by "<code title="">n</code>" (U+006E).
898898

899899
<li>
900900
<p>Otherwise let the value be <var title="">a</var> <a
901901
href="#serialize-a-css-value-component" title="serialize a CSS value
902-
component">serialized</a> as &lt;number>, followed by "<code
902+
component">serialized</a> as &lt;integer>, followed by "<code
903903
title="">n</code>" (U+006E), followed by "<code>+</code>" (U+002B)
904904
if <var title="">b</var> is positive, followed by <var
905905
title="">b</var> <a href="#serialize-a-css-value-component"
906906
title="serialize a CSS value component">serialized</a> as
907-
&lt;number>.
907+
&lt;integer>.
908908
</ol>
909909

910910
<dt><code title="">:not()</code>
@@ -1975,8 +1975,8 @@ <h4 id=the-cssrule-interface><span class=secno>6.4.2. </span>The <code
19751975
};</pre>
19761976

19771977
<p>The <dfn id=dom-cssrule-type
1978-
title=dom-CSSRule-type><code>type</code></dfn> attribute, on getting, <em
1979-
class=ct>must</em> return the CSS rule type, as follows:
1978+
title=dom-CSSRule-type><code>type</code></dfn> attribute <em
1979+
class=ct>must</em> return the <span>CSS rule</span> type, as follows:
19801980

19811981
<dl>
19821982
<dt><dfn id="dom-cssrule-style_rule"
@@ -2138,32 +2138,31 @@ <h4 id=css-import-rule><span class=secno>6.4.4. </span>CSS <code
21382138
};</pre>
21392139

21402140
<p>The <dfn id=dom-cssimportrule-href
2141-
title=dom-CSSImportRule-href><code>href</code></dfn> attribute, on
2142-
getting, <em class=ct>must</em> return the <a href="#url">URL</a>
2143-
specified by the <code>@import</code> rule.
2141+
title=dom-CSSImportRule-href><code>href</code></dfn> attribute <em
2142+
class=ct>must</em> return the <a href="#url">URL</a> specified by the
2143+
<code>@import</code> rule.
21442144

21452145
<p class=note>To get the resolved <a href="#url">URL</a> use the <code
21462146
title=dom-StyleSheet-href><a href="#dom-stylesheet-href">href</a></code>
2147-
attribute of the associated <code><a
2148-
href="#cssstylesheet">CSSStyleSheet</a></code> object.
2147+
attribute of the associated <a href="#style-sheet">style sheet</a>.
21492148

21502149
<p>The <dfn id=dom-cssimportrule-media
2151-
title=dom-CSSImportRule-media><code>media</code></dfn> attribute, on
2152-
getting, <em class=ct>must</em> return the value of the <code
2150+
title=dom-CSSImportRule-media><code>media</code></dfn> attribute <em
2151+
class=ct>must</em> return the value of the <code
21532152
title=dom-StyleSheet-media><a
21542153
href="#dom-stylesheet-media">media</a></code> attribute of the associated
2155-
<code><a href="#cssstylesheet">CSSStyleSheet</a></code> object.
2154+
<a href="#style-sheet">style sheet</a>.
21562155

21572156
<p>The <dfn id=dom-cssimportrule-stylesheet
2158-
title=dom-CSSImportRule-stylesheet><code>styleSheet</code></dfn>
2159-
attribute, on getting, <em class=ct>must</em> return the associated
2160-
<code><a href="#cssstylesheet">CSSStyleSheet</a></code> object.
2157+
title=dom-CSSImportRule-stylesheet><code>styleSheet</code></dfn> attribute
2158+
<em class=ct>must</em> return the associated <a href="#style-sheet">style
2159+
sheet</a>.
21612160

21622161
<p class=note>If loading of the style sheet fails its <code
21632162
title=dom-CSSStyleSheet-cssRules><a
21642163
href="#dom-cssstylesheet-cssrules">cssRules</a></code> list is simply
2165-
empty. I.e. an <code>@import</code> rule always has an associated <code><a
2166-
href="#cssstylesheet">CSSStyleSheet</a></code> object.
2164+
empty. I.e. an <code>@import</code> rule always has an associated <a
2165+
href="#style-sheet">style sheet</a>.
21672166

21682167
<h4 id=css-media-rule><span class=secno>6.4.5. </span>CSS <code
21692168
title="">@media</code> Rule</h4>
@@ -2180,16 +2179,16 @@ <h4 id=css-media-rule><span class=secno>6.4.5. </span>CSS <code
21802179
};</pre>
21812180

21822181
<p>The <dfn id=dom-cssmediarule-media
2183-
title=dom-CSSMediaRule-media><code>media</code></dfn> attribute, on
2184-
getting, <em class=ct>must</em> return a <code><a
2182+
title=dom-CSSMediaRule-media><code>media</code></dfn> attribute <em
2183+
class=ct>must</em> return a <code><a
21852184
href="#medialist">MediaList</a></code> object for the list of media
21862185
queries specified with the <code title="">@media</code> rule.
21872186

21882187
<p>The <dfn id=dom-cssmediarule-cssrules
2189-
title=dom-CSSMediaRule-cssRules><code>cssRules</code></dfn> attribute, on
2190-
getting, <em class=ct>must</em> return a <code><a
2191-
href="#cssrulelist">CSSRuleList</a></code> object for the list of rules
2192-
specified with the <code title="">@media</code> rule.
2188+
title=dom-CSSMediaRule-cssRules><code>cssRules</code></dfn> attribute <em
2189+
class=ct>must</em> return a <code><a
2190+
href="#cssrulelist">CSSRuleList</a></code> object for the list of CSS
2191+
rules specified with the <code title="">@media</code> rule.
21932192

21942193
<p>The <dfn id=dom-cssmediarule-insertrule
21952194
title=dom-CSSMediaRule-insertRule><code>insertRule(<var
@@ -2266,8 +2265,8 @@ <h4 id=css-page-rule><span class=secno>6.4.7. </span>CSS <code
22662265
</ol>
22672266

22682267
<p>The <dfn id=csspagerule-style
2269-
title=csspagerule-style><code>style</code></dfn> attribute, on getting,
2270-
<em class=ct>must</em> return a <code><a
2268+
title=csspagerule-style><code>style</code></dfn> attribute <em
2269+
class=ct>must</em> return a <code><a
22712270
href="#cssstyledeclaration">CSSStyleDeclaration</a></code> for the
22722271
<code>@page</code> rule.
22732272

@@ -2280,18 +2279,18 @@ <h4 id=css-namespace-rule><span class=secno>6.4.8. </span>CSS <code
22802279
<pre
22812280
class=idl>interface <dfn id=cssnamespacerule>CSSNamespaceRule</dfn> : <a href="#cssrule">CSSRule</a> {
22822281
readonly attribute DOMString <a href="#dom-cssnamespacerule-namespaceuri" title=dom-CSSNamespaceRule-namespaceURI>namespaceURI</a>;
2283-
readonly attribute DOMString <a href="#dom-cssnamespacerule-prefix" title=dom-CSSNamespaceRule-prefix>prefix</a>;
2282+
readonly attribute DOMString? <a href="#dom-cssnamespacerule-prefix" title=dom-CSSNamespaceRule-prefix>prefix</a>;
22842283
};</pre>
22852284

22862285
<p>The <dfn id=dom-cssnamespacerule-namespaceuri
22872286
title=dom-CSSNamespaceRule-namespaceURI><code>namespaceURI</code></dfn>
2288-
attribute, on getting, <em class=ct>must</em> return the namespace of the
2287+
attribute <em class=ct>must</em> return the namespace of the
22892288
<code>@namespace</code> rule.
22902289

22912290
<p>The <dfn id=dom-cssnamespacerule-prefix
2292-
title=dom-CSSNamespaceRule-prefix><code>prefix</code></dfn> attribute, on
2293-
getting, <em class=ct>must</em> return the prefix of the
2294-
<code>@namespace</code> rule or the empty string if there is no prefix.
2291+
title=dom-CSSNamespaceRule-prefix><code>prefix</code></dfn> attribute <em
2292+
class=ct>must</em> return the prefix of the <code>@namespace</code> rule
2293+
or the empty string if there is no prefix.
22952294

22962295
<h3 id=css-declaration-blocks><span class=secno>6.5. </span>CSS Declaration
22972296
Blocks</h3>
@@ -2600,7 +2599,7 @@ <h4 id=the-cssstyledeclaration-interface><span class=secno>6.5.1.
26002599

26012600
<p>The <dfn id=dom-cssstyledeclaration-parentrule
26022601
title=dom-CSSStyleDeclaration-parentRule><code>parentRule</code></dfn>
2603-
attribute, on getting, <em class=ct>must</em> return the <code><a
2602+
attribute <em class=ct>must</em> return the <code><a
26042603
href="#cssrule">CSSrule</a></code> object the <code><a
26052604
href="#cssstyledeclaration">CSSStyleDeclaration</a></code> is object is
26062605
associated with or null if it is not associated with a <code><a

cssom/Overview.src.html

Lines changed: 23 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ <h3>Serializing Selectors</h3>
633633

634634
<li><p>If <var title="">a</var> is zero let the value be
635635
<var title="">b</var>
636-
<span title="serialize a CSS value component">serialized</span> as &lt;number>.</p></li>
636+
<span title="serialize a CSS value component">serialized</span> as &lt;integer>.</p></li>
637637

638638
<li><p>If <var title="">a</var> is one or minus one and
639639
<var title="">b</var> is zero let the value be
@@ -643,20 +643,20 @@ <h3>Serializing Selectors</h3>
643643
"<code title="">n</code>" (U+006E), followed by
644644
"<code>+</code>" (U+002B) if <var title="">b</var> is positive,
645645
followed by <var title="">b</var>
646-
<span title="serialize a CSS value component">serialized</span> as &lt;number>.</p></li>
646+
<span title="serialize a CSS value component">serialized</span> as &lt;integer>.</p></li>
647647

648648
<li><p>If <var title="">b</var> is zero let the value be
649649
<var title="">a</var>
650-
<span title="serialize a CSS value component">serialized</span> as &lt;number>,
650+
<span title="serialize a CSS value component">serialized</span> as &lt;integer>,
651651
followed by "<code title="">n</code>" (U+006E).</p></li>
652652

653653
<li><p>Otherwise let the value be
654654
<var title="">a</var>
655-
<span title="serialize a CSS value component">serialized</span> as &lt;number>,
655+
<span title="serialize a CSS value component">serialized</span> as &lt;integer>,
656656
followed by "<code title="">n</code>" (U+006E), followed by
657657
"<code>+</code>" (U+002B) if <var title="">b</var> is positive,
658658
followed by <var title="">b</var>
659-
<span title="serialize a CSS value component">serialized</span> as &lt;number>.</p></li>
659+
<span title="serialize a CSS value component">serialized</span> as &lt;integer>.</p></li>
660660
</ol>
661661
</dd>
662662

@@ -1606,7 +1606,7 @@ <h4>The <code title="">CSSRule</code> Interface</h4>
16061606

16071607
<p>The
16081608
<dfn id="dom-cssrule-type" title="dom-CSSRule-type"><code>type</code></dfn>
1609-
attribute, on getting, <em class="ct">must</em> return the CSS rule type,
1609+
attribute <em class="ct">must</em> return the <span>CSS rule</span> type,
16101610
as follows:</p>
16111611

16121612
<dl>
@@ -1732,28 +1732,28 @@ <h4>CSS <code title="">@import</code> Rule</h4>
17321732

17331733
<p>The
17341734
<dfn id="dom-cssimportrule-href" title="dom-CSSImportRule-href"><code>href</code></dfn>
1735-
attribute, on getting, <em class="ct">must</em> return the
1736-
<span>URL</span> specified by the <code>@import</code> rule.</p>
1735+
attribute <em class="ct">must</em> return the <span>URL</span> specified
1736+
by the <code>@import</code> rule.</p>
17371737

17381738
<p class="note">To get the resolved <span>URL</span> use the
17391739
<code title="dom-StyleSheet-href">href</code> attribute of the associated
1740-
<code>CSSStyleSheet</code> object.</p>
1740+
<span>style sheet</span>.</p>
17411741

17421742
<p>The
17431743
<dfn id="dom-cssimportrule-media" title="dom-CSSImportRule-media"><code>media</code></dfn>
1744-
attribute, on getting, <em class="ct">must</em> return the value of the
1744+
attribute <em class="ct">must</em> return the value of the
17451745
<code title="dom-StyleSheet-media">media</code> attribute of the
1746-
associated <code>CSSStyleSheet</code> object.</p>
1746+
associated <span>style sheet</span>.</p>
17471747

17481748
<p>The
17491749
<dfn id="dom-cssimportrule-stylesheet" title="dom-CSSImportRule-stylesheet"><code>styleSheet</code></dfn>
1750-
attribute, on getting, <em class="ct">must</em> return the associated
1751-
<code>CSSStyleSheet</code> object.</p>
1750+
attribute <em class="ct">must</em> return the associated
1751+
<span>style sheet</span>.</p>
17521752

17531753
<p class="note">If loading of the style sheet fails its
17541754
<code title="dom-CSSStyleSheet-cssRules">cssRules</code> list is simply
17551755
empty. I.e. an <code>@import</code> rule always has an associated
1756-
<code>CSSStyleSheet</code> object.</p>
1756+
<span>style sheet</span>.</p>
17571757

17581758

17591759
<h4>CSS <code title="">@media</code> Rule</h4>
@@ -1770,14 +1770,14 @@ <h4>CSS <code title="">@media</code> Rule</h4>
17701770

17711771
<p>The
17721772
<dfn id="dom-cssmediarule-media" title="dom-CSSMediaRule-media"><code>media</code></dfn>
1773-
attribute, on getting, <em class="ct">must</em> return a
1773+
attribute <em class="ct">must</em> return a
17741774
<code>MediaList</code> object for the list of media queries specified
17751775
with the <code title="">@media</code> rule.</p>
17761776

17771777
<p>The
17781778
<dfn id="dom-cssmediarule-cssrules" title="dom-CSSMediaRule-cssRules"><code>cssRules</code></dfn>
1779-
attribute, on getting, <em class="ct">must</em> return a
1780-
<code>CSSRuleList</code> object for the list of rules specified with the
1779+
attribute <em class="ct">must</em> return a
1780+
<code>CSSRuleList</code> object for the list of CSS rules specified with the
17811781
<code title="">@media</code> rule.</p>
17821782

17831783
<p>The
@@ -1849,7 +1849,7 @@ <h4>CSS <code title="">@page</code> Rule</h4>
18491849

18501850
<p>The
18511851
<dfn id="csspagerule-style" title="csspagerule-style"><code>style</code></dfn>
1852-
attribute, on getting, <em class="ct">must</em> return a
1852+
attribute <em class="ct">must</em> return a
18531853
<code>CSSStyleDeclaration</code> for the <code>@page</code> rule.</p>
18541854

18551855

@@ -1860,19 +1860,18 @@ <h4>CSS <code title="">@namespace</code> Rule</h4>
18601860

18611861
<pre class="idl">interface <dfn>CSSNamespaceRule</dfn> : <span>CSSRule</span> {
18621862
readonly attribute DOMString <span title="dom-CSSNamespaceRule-namespaceURI">namespaceURI</span>;
1863-
readonly attribute DOMString <span title="dom-CSSNamespaceRule-prefix">prefix</span>;
1863+
readonly attribute DOMString? <span title="dom-CSSNamespaceRule-prefix">prefix</span>;
18641864
};</pre>
18651865

18661866
<p>The
18671867
<dfn id="dom-cssnamespacerule-namespaceuri" title="dom-CSSNamespaceRule-namespaceURI"><code>namespaceURI</code></dfn>
1868-
attribute, on getting, <em class="ct">must</em> return the namespace of
1868+
attribute <em class="ct">must</em> return the namespace of
18691869
the <code>@namespace</code> rule.</p>
18701870

18711871
<p>The
18721872
<dfn id="dom-cssnamespacerule-prefix" title="dom-CSSNamespaceRule-prefix"><code>prefix</code></dfn>
1873-
attribute, on getting, <em class="ct">must</em> return the prefix of the
1874-
<code>@namespace</code> rule or the empty string if there is no
1875-
prefix.</p>
1873+
attribute <em class="ct">must</em> return the prefix of the
1874+
<code>@namespace</code> rule or the empty string if there is no prefix.</p>
18761875

18771876

18781877
<h3>CSS Declaration Blocks</h3>
@@ -2033,7 +2032,7 @@ <h4>The <code title="">CSSStyleDeclaration</code> Interface</h4>
20332032

20342033
<p>The
20352034
<dfn id="dom-cssstyledeclaration-parentrule" title="dom-CSSStyleDeclaration-parentRule"><code>parentRule</code></dfn>
2036-
attribute, on getting, <em class="ct">must</em> return the
2035+
attribute <em class="ct">must</em> return the
20372036
<code>CSSrule</code> object the <code>CSSStyleDeclaration</code> is object is
20382037
associated with or null if it is not associated with a
20392038
<code>CSSrule</code> object.</p>

0 commit comments

Comments
 (0)