numbering issue

This commit is contained in:
Mark Pilgrim
2009-05-21 20:19:37 -04:00
parent 2f49195ffd
commit 62628b8845
2 changed files with 2 additions and 3 deletions
+1 -1
View File
@@ -92,7 +92,7 @@ pre a,.w a{padding:0.4375em 0}
.w a{text-decoration:underline}
kbd,mark{font-weight:bold}
mark{display:inline-block;width:100%;background:#ff8}
.p{color:#667}
pre span,.p{color:#667}
/* overrides */
li ol,.q{margin:0}
+1 -2
View File
@@ -337,8 +337,7 @@ mark{display:inline}
<samp>[]</samp></pre>
<ol>
<li>The <code>findall()</code> method finds child elements that match a specific query. (More on the query format in a minute.)
<li>Each element &mdash; including the root element, but also child elements &mdash; has a <code>findall()</code> method. It finds all matching elements among the element&#8217;s children.
<li>What happened here? Although it may not be obvious, this particular <code>findall()</code> query only searches the element&#8217;s children. Since the root <code>feed</code> element has no child named <code>feed</code>, this query returns an empty list.
<li>Each element &mdash; including the root element, but also child elements &mdash; has a <code>findall()</code> method. It finds all matching elements among the element&#8217;s children. But why aren&#8217;t there any results? Although it may not be obvious, this particular query only searches the element&#8217;s children. Since the root <code>feed</code> element has no child named <code>feed</code>, this query returns an empty list.
<li>This result may also surprise you. <a href=#divingin>There is an <code>author</code> element</a> in this document; in fact, there are three (one in each <code>entry</code>). But those <code>author</code> elements are not <em>direct children</em> of the root element; they are &#8220;grandchildren&#8221; (literally, a child element of a child element). If you want to look for <code>author</code> elements at any nesting level, you can do that, but the query format is slightly different.
</ol>