diff --git a/docs/topics/selectors.rst b/docs/topics/selectors.rst index 0728922e5..ebb333cf3 100644 --- a/docs/topics/selectors.rst +++ b/docs/topics/selectors.rst @@ -194,7 +194,7 @@ inside ``
`` elements:: This is the proper way to do it (note the dot prefixing the ``.//p`` XPath):: - >>> for p in divs.x('//p') # extracts all

inside + >>> for p in divs.x('.//p') # extracts all

inside >>> print p.extract() Another common case would be to extract all direct ``

`` children::