Skip to content

Commit 6ad8c50

Browse files
committed
[selectors4] Make :read-only/:read-write more accurate.
1 parent 5c7520d commit 6ad8c50

File tree

3 files changed

+22
-25
lines changed

3 files changed

+22
-25
lines changed

css-variables/Overview.src.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -550,7 +550,7 @@ <h3 id='the-cssvariablesdeclaration-interface'>
550550
The <code>CSSVariablesDeclaration</code> Interface</h3>
551551

552552
<p>
553-
The <dfn><code>CSSVariablesDeclaration</code></dfn> interface exposes the <i>custom properties</i> declared in the block,
553+
The <dfn><code>CSSVariablesDeclaration</code></dfn> interface exposes the <i>custom properties</i> declared in the parent declaration block,
554554
in a more convenient fashion than the <code>getPropertyValue()</code>/etc. functions.
555555

556556
<pre class='idl'>

selectors4/Overview.html

+15-15
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@
77
<link href="http://purl.org/dc/terms/" rel=schema.DC>
88
<meta content="Selectors Level 4" name=DC.title>
99
<meta content=text name=DC.type>
10-
<meta content=2012-08-31 name=DC.issued>
10+
<meta content=2012-09-01 name=DC.issued>
1111
<meta content="http://dev.w3.org/csswg/selectors4/" name=DC.creator>
1212
<meta content=W3C name=DC.publisher>
13-
<meta content="http://www.w3.org/TR/2012/ED-selectors4-20120831/"
13+
<meta content="http://www.w3.org/TR/2012/ED-selectors4-20120901/"
1414
name=DC.identifier>
1515
<link href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright"
1616
rel=DC.rights>
@@ -29,13 +29,14 @@
2929

3030
<h1 id=title>Selectors Level 4</h1>
3131

32-
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 31 August 2012</h2>
32+
<h2 class="no-num no-toc" id=longstatus-date>Editor's Draft 1 September
33+
2012</h2>
3334

3435
<dl>
3536
<dt>This version:
3637

37-
<dd><a href="http://www.w3.org/TR/2012/ED-selectors4-20120831/">
38-
http://www.w3.org/TR/2012/ED-selectors4-20120831/</a>
38+
<dd><a href="http://www.w3.org/TR/2012/ED-selectors4-20120901/">
39+
http://www.w3.org/TR/2012/ED-selectors4-20120901/</a>
3940

4041
<dt>Editor's draft:
4142

@@ -2957,16 +2958,15 @@ <h3 id=rw-pseudos><span class=secno>11.9. </span> The mutability
29572958
pseudo-classes <a href="#read-only-pseudo"><code>:read-only</code></a> and
29582959
<a href="#read-write-pseudo"><code>:read-write</code></a></h3>
29592960

2960-
<p>An element whose contents are not user-alterable is <dfn
2961-
id=read-only-pseudo>:read-only</dfn>. However, elements whose contents are
2962-
user-alterable (such as text input fields) are considered to be in a
2963-
:read-write state. In typical documents, most elements are <a
2964-
href="#read-only-pseudo"><code>:read-only</code></a>. However it may be
2965-
possible, depending on the document language, for any element to become
2966-
<dfn id=read-write-pseudo>:read-write</dfn>. For example, in HTML5 any
2967-
element with the <code>contenteditable</code> attribute set to the true
2968-
state is considered user-alterable. <a href="#HTML5"
2969-
rel=biblioentry>[HTML5]<!--{{HTML5}}--></a>
2961+
<p>An element matches <dfn id=read-write-pseudo>:read-write</dfn> if it is
2962+
user-alterable, as defined by the host language. Otherwise, it is <dfn
2963+
id=read-only-pseudo>:read-only</dfn>.
2964+
2965+
<p>For example, in HTML5 a non-disabled non-readonly
2966+
<code>&lt;input></code> element is <a
2967+
href="#read-write-pseudo"><code>:read-write</code></a>, as is any element
2968+
with the <code>contenteditable</code> attribute set to the true state. <a
2969+
href="#HTML5" rel=biblioentry>[HTML5]<!--{{HTML5}}--></a>
29702970

29712971
<h2 id=structural-pseudos><span class=secno>12. </span> Tree-Structural
29722972
pseudo-classes</h2>

selectors4/Overview.src.html

+6-9
Original file line numberDiff line numberDiff line change
@@ -2075,15 +2075,12 @@ <h3 id="user-pseudos">
20752075
<h3 id="rw-pseudos">
20762076
The mutability pseudo-classes <code>:read-only</code> and <code>:read-write</code></h3>
20772077

2078-
<p>An element whose contents are not user-alterable is
2079-
<dfn id="read-only-pseudo">:read-only</dfn>. However, elements whose contents are
2080-
user-alterable (such as text input fields) are considered to be
2081-
in a :read-write state. In typical documents, most elements are
2082-
<code>:read-only</code>. However it may be possible, depending
2083-
on the document language, for any element to become
2084-
<dfn id="read-write-pseudo">:read-write</dfn>.
2085-
For example, in HTML5 any element with the <code>contenteditable</code>
2086-
attribute set to the true state is considered user-alterable. [[HTML5]]
2078+
<p>An element matches <dfn id="read-write-pseudo">:read-write</dfn> if it is user-alterable,
2079+
as defined by the host language.
2080+
Otherwise, it is <dfn id="read-only-pseudo">:read-only</dfn>.
2081+
2082+
<p>For example, in HTML5 a non-disabled non-readonly <code>&lt;input></code> element is <code>:read-write</code>,
2083+
as is any element with the <code>contenteditable</code> attribute set to the true state. [[HTML5]]
20872084

20882085
<h2 id="structural-pseudos">
20892086
Tree-Structural pseudo-classes</h2>

0 commit comments

Comments
 (0)