Skip to content

Commit 70bcfe8

Browse files
committed
add removeProperty
1 parent e616f66 commit 70bcfe8

2 files changed

Lines changed: 54 additions & 11 deletions

File tree

cssom/Overview.html

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1761,9 +1761,9 @@ <h4 id=the-cssstyledeclaration><span class=secno>3.6.1. </span>The <code><a
17611761

17621762
<pre
17631763
class=idl>interface <dfn id=cssstyledeclaration>CSSStyleDeclaration</dfn> {
1764-
attribute DOMString <a href="#csstext" title=cssstyledeclaration-csstext>cssText</a>;
1765-
DOMString <span title=cssstyledeclaration-getpropertyvalue>getPropertyValue</span>(in DOMString <var title="">property</var>);
1766-
DOMString <span title=cssstyledeclaration-removeproperty>removeProperty</span>(in DOMString <var title="">property</var>);
1764+
attribute DOMString <a href="#cssstyledeclaration-csstext" title=cssstyledeclaration-csstext>cssText</a>;
1765+
DOMString <a href="#cssstyledeclaration-getpropertyvalue" title=cssstyledeclaration-getpropertyvalue>getPropertyValue</a>(in DOMString <var title="">property</var>);
1766+
DOMString <a href="#cssstyledeclaration-removeproperty" title=cssstyledeclaration-removeproperty>removeProperty</a>(in DOMString <var title="">property</var>);
17671767
DOMString <span title=cssstyledeclaration-getpropertypriority>getPropertyPriority</span>(in DOMString <var title="">property</var>);
17681768
void <span title=cssstyledeclaration-setproperty>setProperty</span>(in DOMString <var title="">property</var>, in DOMString <var title="">value</var>);
17691769
void <span title=cssstyledeclaration-setproperty>setProperty</span>(in DOMString <var title="">property</var>, in DOMString <var title="">value</var>, in DOMString <var title="">priority</var>);
@@ -1775,17 +1775,38 @@ <h4 id=the-cssstyledeclaration><span class=secno>3.6.1. </span>The <code><a
17751775
<p class=issue>...
17761776

17771777
<dl class=members>
1778-
<dt><dfn id=csstext
1779-
title=cssstyledeclaration-csstext><code>cssText</code></dfn>
1778+
<dt><dfn id=cssstyledeclaration-csstext
1779+
title=cssstyledeclaration-csstext><code>cssText</code></dfn> of type
1780+
<code>DOMString</code>
17801781

17811782
<dd>
1782-
<p>On setting, user agents <em class=ct>must</em> remove all properties
1783+
<p>On setting, user agents <em class=ct>must</em> raise a
1784+
<code>NO_MODIFICATION_ALLOWED_ERR</code> exception when the declaration
1785+
block is marked as <span title="declaration readonly">readonly</span>.
1786+
Otherwise, user agents <em class=ct>must</em> remove all properties
17831787
currently set on the object and then parse the given string as the
17841788
contents of a declaration block and set each property / value pair that
17851789
is not ignored on the <code><a
17861790
href="#cssstyledeclaration">CSSStyleDeclaration</a></code> block.</p>
17871791

17881792
<p>On getting, <span class=issue>...</span>.</p>
1793+
1794+
<dt><dfn id=cssstyledeclaration-getpropertyvalue
1795+
title=cssstyledeclaration-getpropertyvalue><code>getPropertyValue(<var
1796+
title="">property</var>)</code>, method</dfn>
1797+
1798+
<dd>...
1799+
1800+
<dt><dfn id=cssstyledeclaration-removeproperty
1801+
title=cssstyledeclaration-removeproperty><code>removeProperty(<var
1802+
title="">property</var>)</code>, method</dfn>
1803+
1804+
<dd>When invoked, user agents <em class=ct>must</em> raise a
1805+
<code>NO_MODIFICATION_ALLOWED_ERR</code> exception when the declaration
1806+
block is marked as <span title="declaration readonly">readonly</span>.
1807+
Otherwise, if <var title="">property</var> case-insensitively matches a
1808+
specified property user agents <em class=ct>must</em> remove that
1809+
property declaration.
17891810
</dl>
17901811

17911812
<h4 id=css-properties><span class=secno>3.6.2. </span>CSS Properties</h4>
@@ -1936,11 +1957,13 @@ <h4 id=the-cssbasevalue><span class=secno>3.7.1. </span>The <code><a
19361957

19371958
<pre
19381959
class=idl>interface <dfn id=cssbasevalue>CSSBaseValue</dfn> : DOMString {
1939-
attribute DOMString <a href="#csstext0" title=cssbasevalue-csstext>cssText</a>;
1960+
attribute DOMString <a href="#cssbasevalue-csstext" title=cssbasevalue-csstext>cssText</a>;
19401961
};</pre>
19411962

19421963
<dl class=members>
1943-
<dt><dfn id=csstext0 title=cssbasevalue-csstext><code>cssText</code></dfn>
1964+
<dt><dfn id=cssbasevalue-csstext
1965+
title=cssbasevalue-csstext><code>cssText</code></dfn> of type
1966+
<code>DOMString</code>
19441967

19451968
<dd>
19461969
<p>On setting, user agents <em class=ct>must</em> parse the given string

cssom/Overview.src.html

Lines changed: 23 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1400,16 +1400,35 @@ <h4>The <code>CSSStyleDeclaration</code> Interface</h4>
14001400
<p class="issue">...</p>
14011401

14021402
<dl class="members">
1403-
<dt><dfn title="cssstyledeclaration-csstext"><code>cssText</code></dfn></dt>
1403+
<dt><dfn id="cssstyledeclaration-csstext" title="cssstyledeclaration-csstext"><code>cssText</code></dfn>
1404+
of type <code>DOMString</code></dt>
14041405

14051406
<dd>
1406-
<p>On setting, user agents <em class="ct">must</em> remove all properties
1407+
<p>On setting, user agents <em class="ct">must</em> raise a
1408+
<code>NO_MODIFICATION_ALLOWED_ERR</code> exception when the declaration
1409+
block is marked as <span title="declaration readonly">readonly</span>.
1410+
Otherwise, user agents <em class="ct">must</em> remove all properties
14071411
currently set on the object and then parse the given string as the
14081412
contents of a declaration block and set each property / value pair that is
14091413
not ignored on the <code>CSSStyleDeclaration</code> block.</p>
14101414

14111415
<p>On getting, <span class="issue">...</span>.</p>
14121416
</dd>
1417+
1418+
<dt><dfn id="cssstyledeclaration-getpropertyvalue" title="cssstyledeclaration-getpropertyvalue"><code>getPropertyValue(<var title="">property</var>)</code>,
1419+
method</dfn></dt>
1420+
1421+
<dd>...</dd>
1422+
1423+
<dt><dfn id="cssstyledeclaration-removeproperty" title="cssstyledeclaration-removeproperty"><code>removeProperty(<var title="">property</var>)</code>,
1424+
method</dfn></dt>
1425+
1426+
<dd>When invoked, user agents <em class="ct">must</em> raise a
1427+
<code>NO_MODIFICATION_ALLOWED_ERR</code> exception when the declaration
1428+
block is marked as <span title="declaration readonly">readonly</span>.
1429+
Otherwise, if <var title="">property</var> case-insensitively matches a
1430+
specified property user agents <em class="ct">must</em> remove that
1431+
property declaration.</dd>
14131432
</dl>
14141433

14151434
<h4>CSS Properties</h4>
@@ -1556,7 +1575,8 @@ <h4>The <code>CSSBaseValue</code> Interface</h4>
15561575
};</pre>
15571576

15581577
<dl class="members">
1559-
<dt><dfn title="cssbasevalue-csstext"><code>cssText</code></dfn></dt>
1578+
<dt><dfn id="cssbasevalue-csstext" title="cssbasevalue-csstext"><code>cssText</code></dfn>
1579+
of type <code>DOMString</code></dt>
15601580

15611581
<dd>
15621582
<p>On setting, user agents <em class="ct">must</em> parse the given string

0 commit comments

Comments
 (0)