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><p></sgmltag> elements which contain an
<sgmltag><a></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><p></sgmltag> elements of class
<literal>foo</literal> which contain an
<sgmltag><a></sgmltag> element are selected.
@@ -114,15 +114,15 @@
</listitem>
</varlistentry>
<varlistentry>
- <term><code>ul/li</code></term>
+ <term><code>ul > li</code></term>
<listitem>
<para>
- All <sgmltag><li></sgmltag> elements contained in
<sgmltag><ul></sgmltag> elements are selected.
+ All <sgmltag><li></sgmltag> elements that are
children of <sgmltag><ul></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><input></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><input></sgmltag> elements with both a
<code><varname>type</varname>="radio"</code> attribute
and a <code><varname>checked</varname></code> attribute are
selected.
+ All <sgmltag><input></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><span></sgmltag> elements that are
direct or indirect children of <sgmltag><p></sgmltag> elements
are selected.
+ All <sgmltag><span></sgmltag> elements that are
direct or indirect children of <sgmltag><p></sgmltag> elements
are selected. Use <code>p > 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><p></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><p></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><p></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.