1 <?xml version="1.0" encoding="ascii"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
3 "DTD/xhtml1-transitional.dtd">
4 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6 <title>lxml.cssselect.LxmlHTMLTranslator</title>
7 <link rel="stylesheet" href="epydoc.css" type="text/css" />
8 <script type="text/javascript" src="epydoc.js"></script>
11 <body bgcolor="white" text="black" link="blue" vlink="#204080"
13 <!-- ==================== NAVIGATION BAR ==================== -->
14 <table class="navbar" border="0" width="100%" cellpadding="0"
15 bgcolor="#a0c0ff" cellspacing="0">
18 <th> <a
19 href="lxml-module.html">Home</a> </th>
22 <th> <a
23 href="module-tree.html">Trees</a> </th>
26 <th> <a
27 href="identifier-index.html">Indices</a> </th>
30 <th> <a
31 href="help.html">Help</a> </th>
33 <!-- Project homepage -->
34 <th class="navbar" align="right" width="100%">
35 <table border="0" cellpadding="0" cellspacing="0">
36 <tr><th class="navbar" align="center"
37 ><a class="navbar" target="_top" href="/">lxml API</a></th>
41 <table width="100%" cellpadding="0" cellspacing="0">
44 <span class="breadcrumbs">
45 <a href="lxml-module.html">Package lxml</a> ::
46 <a href="lxml.cssselect-module.html">Module cssselect</a> ::
47 Class LxmlHTMLTranslator
51 <table cellpadding="0" cellspacing="0">
52 <!-- hide/show private -->
53 <tr><td align="right"><span class="options">[<a href="javascript:void(0);" class="privatelink"
54 onclick="toggle_private();">hide private</a>]</span></td></tr>
55 <tr><td align="right"><span class="options"
56 >[<a href="frames.html" target="_top">frames</a
57 >] | <a href="lxml.cssselect.LxmlHTMLTranslator-class.html"
58 target="_top">no frames</a>]</span></td></tr>
63 <!-- ==================== CLASS DESCRIPTION ==================== -->
64 <h1 class="epydoc">Class LxmlHTMLTranslator</h1><p class="nomargin-top"><span class="codelink"><a href="lxml.cssselect-pysrc.html#LxmlHTMLTranslator">source code</a></span></p>
65 <pre class="base-tree">
68 cssselect.xpath.GenericTranslator --+
70 <a href="lxml.cssselect.LxmlTranslator-class.html" onclick="show_private();">LxmlTranslator</a> --+
74 cssselect.xpath.GenericTranslator --+ |
76 cssselect.xpath.HTMLTranslator --+
78 <strong class="uidshort">LxmlHTMLTranslator</strong>
82 lxml extensions + HTML support.
84 <!-- ==================== NESTED CLASSES ==================== -->
85 <a name="section-NestedClasses"></a>
86 <table class="summary" border="1" cellpadding="3"
87 cellspacing="0" width="100%" bgcolor="white">
88 <tr bgcolor="#70b0f0" class="table-header">
89 <td colspan="2" class="table-header">
90 <table border="0" cellpadding="0" cellspacing="0" width="100%">
92 <td align="left"><span class="table-header">Nested Classes</span></td>
93 <td align="right" valign="top"
94 ><span class="options">[<a href="#section-NestedClasses"
95 class="privatelink" onclick="toggle_private();"
96 >hide private</a>]</span></td>
102 <td colspan="2" class="summary">
103 <p class="indent-wrapped-lines"><b>Inherited from <code>cssselect.xpath.GenericTranslator</code></b>:
104 <code><a href="cssselect.xpath.XPathExpr-class.html">xpathexpr_cls</a></code>
109 <!-- ==================== INSTANCE METHODS ==================== -->
110 <a name="section-InstanceMethods"></a>
111 <table class="summary" border="1" cellpadding="3"
112 cellspacing="0" width="100%" bgcolor="white">
113 <tr bgcolor="#70b0f0" class="table-header">
114 <td colspan="2" class="table-header">
115 <table border="0" cellpadding="0" cellspacing="0" width="100%">
117 <td align="left"><span class="table-header">Instance Methods</span></td>
118 <td align="right" valign="top"
119 ><span class="options">[<a href="#section-InstanceMethods"
120 class="privatelink" onclick="toggle_private();"
121 >hide private</a>]</span></td>
127 <td colspan="2" class="summary">
128 <p class="indent-wrapped-lines"><b>Inherited from <code><a href="lxml.cssselect.LxmlTranslator-class.html" onclick="show_private();">LxmlTranslator</a></code></b>:
129 <code><a href="lxml.cssselect.LxmlTranslator-class.html#xpath_contains_function">xpath_contains_function</a></code>
131 <p class="indent-wrapped-lines"><b>Inherited from <code>cssselect.xpath.HTMLTranslator</code></b>:
132 <code>__init__</code>,
133 <code>xpath_checked_pseudo</code>,
134 <code>xpath_disabled_pseudo</code>,
135 <code>xpath_enabled_pseudo</code>,
136 <code>xpath_lang_function</code>,
137 <code>xpath_link_pseudo</code>
139 <p class="indent-wrapped-lines"><b>Inherited from <code>cssselect.xpath.GenericTranslator</code></b>:
140 <code>css_to_xpath</code>,
141 <code>pseudo_never_matches</code>,
142 <code>selector_to_xpath</code>,
144 <code>xpath_active_pseudo</code>,
145 <code>xpath_attrib</code>,
146 <code>xpath_attrib_dashmatch</code>,
147 <code>xpath_attrib_different</code>,
148 <code>xpath_attrib_equals</code>,
149 <code>xpath_attrib_exists</code>,
150 <code>xpath_attrib_includes</code>,
151 <code>xpath_attrib_prefixmatch</code>,
152 <code>xpath_attrib_substringmatch</code>,
153 <code>xpath_attrib_suffixmatch</code>,
154 <code>xpath_child_combinator</code>,
155 <code>xpath_class</code>,
156 <code>xpath_combinedselector</code>,
157 <code>xpath_descendant_combinator</code>,
158 <code>xpath_direct_adjacent_combinator</code>,
159 <code>xpath_element</code>,
160 <code>xpath_empty_pseudo</code>,
161 <code>xpath_first_child_pseudo</code>,
162 <code>xpath_first_of_type_pseudo</code>,
163 <code>xpath_focus_pseudo</code>,
164 <code>xpath_function</code>,
165 <code>xpath_hash</code>,
166 <code>xpath_hover_pseudo</code>,
167 <code>xpath_indirect_adjacent_combinator</code>,
168 <code>xpath_last_child_pseudo</code>,
169 <code>xpath_last_of_type_pseudo</code>,
170 <code>xpath_negation</code>,
171 <code>xpath_nth_child_function</code>,
172 <code>xpath_nth_last_child_function</code>,
173 <code>xpath_nth_last_of_type_function</code>,
174 <code>xpath_nth_of_type_function</code>,
175 <code>xpath_only_child_pseudo</code>,
176 <code>xpath_only_of_type_pseudo</code>,
177 <code>xpath_pseudo</code>,
178 <code>xpath_pseudo_element</code>,
179 <code>xpath_root_pseudo</code>,
180 <code>xpath_target_pseudo</code>,
181 <code>xpath_visited_pseudo</code>
183 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
184 <code>__delattr__</code>,
185 <code>__format__</code>,
186 <code>__getattribute__</code>,
187 <code>__hash__</code>,
188 <code>__new__</code>,
189 <code>__reduce__</code>,
190 <code>__reduce_ex__</code>,
191 <code>__repr__</code>,
192 <code>__setattr__</code>,
193 <code>__sizeof__</code>,
194 <code>__str__</code>,
195 <code>__subclasshook__</code>
200 <!-- ==================== STATIC METHODS ==================== -->
201 <a name="section-StaticMethods"></a>
202 <table class="summary" border="1" cellpadding="3"
203 cellspacing="0" width="100%" bgcolor="white">
204 <tr bgcolor="#70b0f0" class="table-header">
205 <td colspan="2" class="table-header">
206 <table border="0" cellpadding="0" cellspacing="0" width="100%">
208 <td align="left"><span class="table-header">Static Methods</span></td>
209 <td align="right" valign="top"
210 ><span class="options">[<a href="#section-StaticMethods"
211 class="privatelink" onclick="toggle_private();"
212 >hide private</a>]</span></td>
218 <td colspan="2" class="summary">
219 <p class="indent-wrapped-lines"><b>Inherited from <code>cssselect.xpath.GenericTranslator</code></b>:
220 <code>xpath_literal</code>
225 <!-- ==================== CLASS VARIABLES ==================== -->
226 <a name="section-ClassVariables"></a>
227 <table class="summary" border="1" cellpadding="3"
228 cellspacing="0" width="100%" bgcolor="white">
229 <tr bgcolor="#70b0f0" class="table-header">
230 <td colspan="2" class="table-header">
231 <table border="0" cellpadding="0" cellspacing="0" width="100%">
233 <td align="left"><span class="table-header">Class Variables</span></td>
234 <td align="right" valign="top"
235 ><span class="options">[<a href="#section-ClassVariables"
236 class="privatelink" onclick="toggle_private();"
237 >hide private</a>]</span></td>
243 <td colspan="2" class="summary">
244 <p class="indent-wrapped-lines"><b>Inherited from <code>cssselect.xpath.HTMLTranslator</code></b>:
245 <code>lang_attribute</code>
247 <p class="indent-wrapped-lines"><b>Inherited from <code>cssselect.xpath.GenericTranslator</code></b>:
248 <code>attribute_operator_mapping</code>,
249 <code>combinator_mapping</code>,
250 <code>id_attribute</code>,
251 <code>lower_case_attribute_names</code>,
252 <code>lower_case_attribute_values</code>,
253 <code>lower_case_element_names</code>
258 <!-- ==================== PROPERTIES ==================== -->
259 <a name="section-Properties"></a>
260 <table class="summary" border="1" cellpadding="3"
261 cellspacing="0" width="100%" bgcolor="white">
262 <tr bgcolor="#70b0f0" class="table-header">
263 <td colspan="2" class="table-header">
264 <table border="0" cellpadding="0" cellspacing="0" width="100%">
266 <td align="left"><span class="table-header">Properties</span></td>
267 <td align="right" valign="top"
268 ><span class="options">[<a href="#section-Properties"
269 class="privatelink" onclick="toggle_private();"
270 >hide private</a>]</span></td>
276 <td colspan="2" class="summary">
277 <p class="indent-wrapped-lines"><b>Inherited from <code>object</code></b>:
278 <code>__class__</code>
283 <!-- ==================== NAVIGATION BAR ==================== -->
284 <table class="navbar" border="0" width="100%" cellpadding="0"
285 bgcolor="#a0c0ff" cellspacing="0">
288 <th> <a
289 href="lxml-module.html">Home</a> </th>
292 <th> <a
293 href="module-tree.html">Trees</a> </th>
296 <th> <a
297 href="identifier-index.html">Indices</a> </th>
300 <th> <a
301 href="help.html">Help</a> </th>
303 <!-- Project homepage -->
304 <th class="navbar" align="right" width="100%">
305 <table border="0" cellpadding="0" cellspacing="0">
306 <tr><th class="navbar" align="center"
307 ><a class="navbar" target="_top" href="/">lxml API</a></th>
311 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
313 <td align="left" class="footer">
314 Generated by Epydoc 3.0.1
315 on Wed Jan 29 12:26:21 2020
317 <td align="right" class="footer">
318 <a target="mainFrame" href="http://epydoc.sourceforge.net"
319 >http://epydoc.sourceforge.net</a>
324 <script type="text/javascript">
326 // Private objects are initially displayed (because if
327 // javascript is turned off then we want them to be
328 // visible); but by default, we want to hide them. So hide
329 // them unless we have a cookie that says to show them.