[richfaces-svn-commits] JBoss Rich Faces SVN: r18609 - branches/development/docs/Component_Reference/src/main/docbook/en-US.

richfaces-svn-commits at lists.jboss.org richfaces-svn-commits at lists.jboss.org
Fri Aug 13 00:40:22 EDT 2010


Author: SeanRogers
Date: 2010-08-13 00:40:21 -0400 (Fri, 13 Aug 2010)
New Revision: 18609

Modified:
   branches/development/docs/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Layout_and_appearance.xml
Log:
Fixed invalid selector information RF-8655

Modified: branches/development/docs/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Layout_and_appearance.xml
===================================================================
--- branches/development/docs/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Layout_and_appearance.xml	2010-08-12 23:45:02 UTC (rev 18608)
+++ branches/development/docs/Component_Reference/src/main/docbook/en-US/chap-Component_Reference-Layout_and_appearance.xml	2010-08-13 04:40:21 UTC (rev 18609)
@@ -90,7 +90,7 @@
 						<title>Example selector values</title>
 						<variablelist>
 							<varlistentry>
-								<term><code>p[a]</code></term>
+								<term><code>p:has(a)</code></term>
 								<listitem>
 									<para>
 										All <sgmltag>&lt;p&gt;</sgmltag> elements which contain an <sgmltag>&lt;a&gt;</sgmltag> element are selected.
@@ -98,7 +98,7 @@
 								</listitem>
 							</varlistentry>
 							<varlistentry>
-								<term><code>p.foo[a]</code></term>
+								<term><code>p.foo:has(a)</code></term>
 								<listitem>
 									<para>
 										All <sgmltag>&lt;p&gt;</sgmltag> elements of class <literal>foo</literal> which contain an <sgmltag>&lt;a&gt;</sgmltag> element are selected.
@@ -114,15 +114,15 @@
 								</listitem>
 							</varlistentry>
 							<varlistentry>
-								<term><code>ul/li</code></term>
+								<term><code>ul &gt; li</code></term>
 								<listitem>
 									<para>
-										All <sgmltag>&lt;li&gt;</sgmltag> elements contained in <sgmltag>&lt;ul&gt;</sgmltag> elements are selected.
+										All <sgmltag>&lt;li&gt;</sgmltag> elements that are children of <sgmltag>&lt;ul&gt;</sgmltag> elements are selected.
 									</para>
 								</listitem>
 							</varlistentry>
 							<varlistentry>
-								<term><code>input[@name=bar]</code></term>
+								<term><code>input[name=bar]</code></term>
 								<listitem>
 									<para>
 										All <sgmltag>&lt;input&gt;</sgmltag> elements with a <varname>name</varname> attribute whose value is <literal>bar</literal> are selected.
@@ -130,10 +130,10 @@
 								</listitem>
 							</varlistentry>
 							<varlistentry>
-								<term><code>input[@type=radio][@checked]</code></term>
+								<term><code>input[type=radio][@checked]</code></term>
 								<listitem>
 									<para>
-										All <sgmltag>&lt;input&gt;</sgmltag> elements with both a <code><varname>type</varname>="radio"</code> attribute and a <code><varname>checked</varname></code> attribute are selected.
+										All <sgmltag>&lt;input&gt;</sgmltag> elements with both a <code><varname>type</varname>="radio"</code> attribute and a <varname>checked</varname> attribute are selected.
 									</para>
 								</listitem>
 							</varlistentry>
@@ -149,10 +149,11 @@
 								<term><code>p span</code></term>
 								<listitem>
 									<para>
-										All <sgmltag>&lt;span&gt;</sgmltag> elements that are direct or indirect children of <sgmltag>&lt;p&gt;</sgmltag> elements are selected.
+										All <sgmltag>&lt;span&gt;</sgmltag> elements that are direct or indirect children of <sgmltag>&lt;p&gt;</sgmltag> elements are selected. Use <code>p &gt; span</code> for direct children only.
 									</para>
 								</listitem>
 							</varlistentry>
+							<!--
 							<varlistentry>
 								<term><code>p//span</code></term>
 								<listitem>
@@ -169,8 +170,9 @@
 									</para>
 								</listitem>
 							</varlistentry>
+							-->
 							<varlistentry>
-								<term><code>p[@foo^=bar]</code></term>
+								<term><code>p[foo^=bar]</code></term>
 								<listitem>
 									<para>
 										All <sgmltag>&lt;p&gt;</sgmltag> elements that contain a <varname>foo</varname> attribute with a textual value <emphasis>beginning</emphasis> with <literal>bar</literal> are selected.
@@ -178,7 +180,7 @@
 								</listitem>
 							</varlistentry>
 							<varlistentry>
-								<term><code>p[@foo$=bar]</code></term>
+								<term><code>p[foo$=bar]</code></term>
 								<listitem>
 									<para>
 										All <sgmltag>&lt;p&gt;</sgmltag> elements that contain a <varname>foo</varname> attribute with a textual value <emphasis>ending</emphasis> with <literal>bar</literal> are selected.
@@ -186,7 +188,7 @@
 								</listitem>
 							</varlistentry>
 							<varlistentry>
-								<term><code>p[@foo*=bar]</code></term>
+								<term><code>p[foo*=bar]</code></term>
 								<listitem>
 									<para>
 										All <sgmltag>&lt;p&gt;</sgmltag> elements that contain a <varname>foo</varname> attribute with a textual value that contains the sub-string <literal>bar</literal> in any position are selected.



More information about the richfaces-svn-commits mailing list