--- /tmp/python-cssselect2-0.3.0-12j7tzagm/debian/python-cssselect2-doc_0.3.0-1_all.deb +++ python-cssselect2-doc_0.3.0-1_all.deb ├── control.tar.xz │ ├── control.tar │ │ ├── ./md5sums │ │ │ ├── ./md5sums │ │ │ │┄ Files differ ├── data.tar.xz │ ├── data.tar │ │ ├── ./usr/share/doc/python-cssselect2-doc/html/index.html │ │ │ @@ -313,52 +313,52 @@ │ │ │ │ │ │ │ │ │ │ │ │ │ │ │
cssselect2.
ElementWrapper
(etree_element, parent, index, previous, in_html_document, content_language=None)¶A wrapper for an ElementTree Element
│ │ │ +
A wrapper for an ElementTree Element
│ │ │ for Selector matching.
This class should not be instanciated directly.
│ │ │ from_xml_root()
or from_html_root()
should be used
│ │ │ for the root element of a document,
│ │ │ and other elements should be accessed (and wrappers generated)
│ │ │ using methods such as iter_children()
and iter_subtree()
.
ElementWrapper
objects compare equal
│ │ │ -if their underlying Element
do.
Element
do.
│ │ │ classes
¶The classes of this element, as a set
of strings.
The classes of this element, as a set
of strings.
etree_children
¶This element’s children,
│ │ │ -as a list of ElementTree Element
.
Element
.
│ │ │ Other ElementTree nodes such as
│ │ │ comments
and
│ │ │ processing instructions
│ │ │ are not included.
etree_element
= None¶The underlying ElementTree Element
The underlying ElementTree Element
etree_siblings
= None¶The parent
’s children
│ │ │ as a list of
│ │ │ -ElementTree Element
s.
│ │ │ +ElementTree Element
s.
│ │ │ For the root (which has no parent)
from_html_root
(root, content_language=None)¶Same as from_xml_root()
, but for documents parsed with an HTML parser
│ │ │ @@ -370,15 +370,15 @@
│ │ │
│ │ │
from_xml_root
(root, content_language=None)¶Wrap for selector matching the root of an XML or XHTML document.
│ │ │root – An ElementTree Element
│ │ │ +
root – An ElementTree Element
│ │ │ for the root element of a document.
│ │ │ If the given element is not the root,
│ │ │ selector matching will behave is if it were.
│ │ │ In other words, selectors will be scope-contained
│ │ │ to the subtree rooted at that element.
The namespace URL of this element, as a string.
│ │ │parent
= None¶The parent ElementWrapper
,
│ │ │ -or None
for the root element.
None
for the root element.
│ │ │ previous
= None¶The previous sibling ElementWrapper
,
│ │ │ -or None
for the root element.
None
for the root element.
│ │ │ query
(*selectors)¶Return the first element (in tree order) │ │ │ that matches any of the given selectors.
│ │ │selectors – Each given selector is either a CompiledSelector
,
│ │ │ or an argument to compile_selector_list()
.
A newly-created ElementWrapper
object,
│ │ │ -or None
if there is no match.
None
if there is no match.
│ │ │ query_all
(*selectors)¶