Skip to content

Commit 8300c3a

Browse files
committed
define IDL attributes in terms of methods
1 parent e778330 commit 8300c3a

2 files changed

Lines changed: 31 additions & 22 deletions

File tree

cssom/Overview.html

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@
2525
<div class=head>
2626
<h1 id=cssom>CSSOM</h1>
2727

28-
<h2 class="no-num no-toc" id="">Editor's Draft 2 December 2009</h2>
28+
<h2 class="no-num no-toc" id="">Editor's Draft 3 December 2009</h2>
2929

3030
<dl>
3131
<dt>This Version:
3232

3333
<dd><a
34-
href="http://www.w3.org/TR/2009/ED-cssom-20091202/">http://www.w3.org/TR/2009/ED-cssom-20091202/</a>
34+
href="http://www.w3.org/TR/2009/ED-cssom-20091203/">http://www.w3.org/TR/2009/ED-cssom-20091203/</a>
3535

3636
<dt>Latest Version:
3737

@@ -2683,6 +2683,8 @@ <h4 id=the-cssstyledeclaration-interface><span class=secno>7.3.2.
26832683
<li>
26842684
<p>If <var title="">priority</var> is neither a valid priority nor the
26852685
empty string terminate this algorithm.
2686+
</li>
2687+
<!-- define valid priority somehow -->
26862688

26872689
<li>
26882690
<p>If <a href="#parse-a-css-value" title="parse a CSS value">parsing the
@@ -2718,17 +2720,21 @@ <h4 id=the-cssstyledeclaration-interface><span class=secno>7.3.2.
27182720
associated with or <code>null</code> if it is not associated with a
27192721
<code><a href="#cssrule">CSSrule</a></code> object.</p>
27202722
<!-- XXX introduce a concept for this instead -->
2721-
<!-- XXX define this in terms of getPropertyValue/setProperty -->
27222723

27232724
<p>For the table below, the IDL attribute in the first column <em
2724-
class=ct>must</em>, on getting return the value for the CSS property given
2725-
in the second column on the same row.</p>
2726-
<!-- XXX ref -->
2727-
2728-
<p>Similarly for the table below, on setting the IDL attribute in the first
2729-
column the value for the CSS property giving in the second column on the
2730-
same row <em class=ct>must</em> be set to the given value.</p>
2731-
<!-- XXX ref, exceptions for readonly objects -->
2725+
class=ct>must</em>, on getting return the result of invoking <code
2726+
title=cssstyledeclaration-getPropertyValue><a
2727+
href="#cssstyledeclaration-getpropertyvalue">getPropertyValue()</a></code>
2728+
with as argument the CSS property given in the second column on the same
2729+
row.
2730+
2731+
<p>Similarly for the table below, setting the IDL attribute in the first
2732+
column <em class=ct>must</em> invoke <code
2733+
title=cssstyledeclaration-setProperty><a
2734+
href="#cssstyledeclaration-setproperty">setProperty()</a></code> with as
2735+
first argument the CSS property given in the second column on the same row
2736+
and no second argument. Any exceptions raised <em class=ct>must</em> be
2737+
re-raised.
27322738

27332739
<table>
27342740
<tbody>

cssom/Overview.src.html

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2219,6 +2219,7 @@ <h4>The <code title="">CSSStyleDeclaration</code> Interface</h4>
22192219

22202220
<li><p>If <var title="">priority</var> is neither a valid priority nor
22212221
the empty string terminate this algorithm.</p></li>
2222+
<!-- define valid priority somehow -->
22222223

22232224
<li>
22242225
<p>If <span title="parse a CSS value">parsing the
@@ -2233,8 +2234,8 @@ <h4>The <code title="">CSSStyleDeclaration</code> Interface</h4>
22332234
is not the empty string. Otherwise set
22342235
<var title="">property</var> to <var title="">value</var>.</p></li>
22352236
</ol>
2236-
2237-
2237+
2238+
22382239
<!-- XXX WebIDL work -->
22392240
<p>The
22402241
<dfn id="cssstyledeclaration-length" title="cssstyledeclaration-length"><code>length</code></dfn>
@@ -2255,17 +2256,19 @@ <h4>The <code title="">CSSStyleDeclaration</code> Interface</h4>
22552256
<!-- XXX introduce a concept for this instead -->
22562257

22572258

2258-
<!-- XXX define this in terms of getPropertyValue/setProperty -->
22592259
<p>For the table below, the IDL attribute in the first column
2260-
<em class="ct">must</em>, on getting return the value for the CSS property
2261-
given in the second column on the same row.</p>
2262-
<!-- XXX ref -->
2260+
<em class="ct">must</em>, on getting return the result of invoking
2261+
<code title="cssstyledeclaration-getPropertyValue">getPropertyValue()</code>
2262+
with as argument the CSS property given in the second column on the same
2263+
row.</p>
2264+
2265+
<p>Similarly for the table below, setting the IDL attribute in the
2266+
first column <em class="ct">must</em> invoke
2267+
<code title="cssstyledeclaration-setProperty">setProperty()</code> with as
2268+
first argument the CSS property given in the second column on the same row
2269+
and no second argument. Any exceptions raised <em class="ct">must</em> be
2270+
re-raised.</p>
22632271

2264-
<p>Similarly for the table below, on setting the IDL attribute in the
2265-
first column the value for the CSS property giving in the second column on
2266-
the same row <em class="ct">must</em> be set to the given value.</p>
2267-
<!-- XXX ref, exceptions for readonly objects -->
2268-
22692272
<table>
22702273
<tbody>
22712274
<tr>

0 commit comments

Comments
 (0)