W3C home > Mailing lists > Public > public-css-commits@w3.org > July 2011

csswg/selectors4 Overview.html,1.33,1.34 Overview.src.html,1.35,1.36

From: Elika Etemad via cvs-syncmail <cvsmail@w3.org>
Date: Sun, 24 Jul 2011 22:43:25 +0000
To: public-css-commits@w3.org
Message-Id: <E1Ql7OP-0001DG-IZ@lionel-hutz.w3.org>
Update of /sources/public/csswg/selectors4
In directory hutz:/tmp/cvs-serv4636

Modified Files:
	Overview.html Overview.src.html 
Log Message:
Better definition for class attribute.

Index: Overview.html
===================================================================
RCS file: /sources/public/csswg/selectors4/Overview.html,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -d -r1.33 -r1.34
--- Overview.html	24 Jul 2011 21:56:27 -0000	1.33
+++ Overview.html	24 Jul 2011 22:43:23 -0000	1.34
@@ -1560,25 +1560,17 @@
 
   <h3 id=class-html><span class=secno>6.5. </span> Class selectors</h3>
 
-  <p>Working with HTML, authors may use the "period" notation (also known as
-   "full stop", U+002E, <code>.</code>) as an alternative to the
-   <code>~=</code> notation when representing the <code>class</code>
-   attribute. Thus, for HTML, <code>div.value</code> and
-   <code>div[class~=value]</code> have the same meaning. The attribute value
-   must immediately follow the full stop (<code>.</code>).
-
-  <p>UAs may apply selectors using the period (.) notation in XML documents
-   if the UA has namespace-specific knowledge that allows it to determine
-   which attribute is the "class" attribute for the respective namespace. One
-   such example of namespace-specific knowledge is the prose in the
-   specification for a particular namespace (e.g. SVG 1.0 <a href="#SVG11"
-   rel=biblioentry>[SVG11]<!--{{SVG11}}--></a> describes the <a
-   href="http://www.w3.org/TR/2001/PR-SVG-20010719/styling.html#ClassAttribute">SVG
-   <code>class</code> attribute</a> and how a UA should interpret it, and
-   similarly MathML 1.01 <a href="#MATHML"
-   rel=biblioentry>[MATHML]<!--{{MATHML}}--></a> describes the <a
-   href="http://www.w3.org/1999/07/REC-MathML-19990707/chapter2.html#sec2.3.4">MathML
-   <code>class</code> attribute</a>.)
+  <p>The class selector is given as a full stop (. U+002E) immediately
+   followed by an identifier. It represents an element belonging to the class
+   identified by the identifier, as defined by the document language. For
+   example, in <a href="#HTML5" rel=biblioentry>[HTML5]<!--{{HTML5}}--></a>,
+   <a href="#SVG11" rel=biblioentry>[SVG11]<!--{{SVG11}}--></a>, and <a
+   href="#MATHML" rel=biblioentry>[MATHML]<!--{{MATHML}}--></a> membership in
+   a class is given by the <code>class</code> attribute: in these languages
+   it is equivalent to the <code>~=</code> notation applied to the local
+   <code>class</code> attribute (i.e.
+   <code>[class~=<var>identifier</var>]</code>), except that it has a higher
+   <a href="#specificity">specificity</a>.
 
   <div class=example>
    <p>CSS examples:</p>

Index: Overview.src.html
===================================================================
RCS file: /sources/public/csswg/selectors4/Overview.src.html,v
retrieving revision 1.35
retrieving revision 1.36
diff -u -d -r1.35 -r1.36
--- Overview.src.html	24 Jul 2011 21:56:28 -0000	1.35
+++ Overview.src.html	24 Jul 2011 22:43:23 -0000	1.36
@@ -1080,25 +1080,15 @@
 <h3 id=class-html>
 Class selectors</h3>
 
-  <p>Working with HTML, authors may use the "period" notation (also
-  known as "full stop", U+002E, <code>.</code>) as an alternative to the
-  <code>~=</code> notation when representing the <code>class</code>
-  attribute. Thus, for HTML, <code>div.value</code> and
-  <code>div[class~=value]</code> have the same meaning. The attribute
-  value must immediately follow the full stop
-  (<code>.</code>).</p>
-
-  <p>UAs may apply selectors using the period (.) notation in XML
-  documents if the UA has namespace-specific knowledge that allows it to
-  determine which attribute is the "class" attribute for the
-  respective namespace. One such example of namespace-specific knowledge
-  is the prose in the specification for a particular namespace (e.g. SVG
-  1.0 [[SVG11]] describes the <a
-  href="http://www.w3.org/TR/2001/PR-SVG-20010719/styling.html#ClassAttribute">SVG
-  <code>class</code> attribute</a> and how a UA should interpret it, and
-  similarly MathML 1.01 [[MATHML]] describes the <a
-  href="http://www.w3.org/1999/07/REC-MathML-19990707/chapter2.html#sec2.3.4">MathML
-  <code>class</code> attribute</a>.)</p>
+  <p>The class selector is given as a full stop (. U+002E) immediately
+  followed by an identifier. It represents an element belonging to the
+  class identified by the identifier, as defined by the document language.
+  For example, in [[HTML5]], [[SVG11]], and [[MATHML]] membership in a
+  class is given by the <code>class</code> attribute: in these languages
+  it is equivalent to the <code>~=</code> notation applied to the
+  local <code>class</code> attribute
+  (i.e. <code>[class~=<var>identifier</var>]</code>),
+  except that it has a higher <a href="#specificity">specificity</a>.
 
   <div class="example">
    <p>CSS examples:</p>
Received on Sunday, 24 July 2011 22:43:31 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Sunday, 24 July 2011 22:43:34 GMT