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.tests.test_objectify</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.tests-module.html">Package tests</a> ::
47 Module test_objectify
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.tests.test_objectify-module.html"
58 target="_top">no frames</a>]</span></td></tr>
63 <!-- ==================== MODULE DESCRIPTION ==================== -->
64 <h1 class="epydoc">Module test_objectify</h1><p class="nomargin-top"><span class="codelink"><a href="lxml.tests.test_objectify-pysrc.html">source code</a></span></p>
65 Tests specific to the lxml.objectify API
67 <!-- ==================== CLASSES ==================== -->
68 <a name="section-Classes"></a>
69 <table class="summary" border="1" cellpadding="3"
70 cellspacing="0" width="100%" bgcolor="white">
71 <tr bgcolor="#70b0f0" class="table-header">
72 <td colspan="2" class="table-header">
73 <table border="0" cellpadding="0" cellspacing="0" width="100%">
75 <td align="left"><span class="table-header">Classes</span></td>
76 <td align="right" valign="top"
77 ><span class="options">[<a href="#section-Classes"
78 class="privatelink" onclick="toggle_private();"
79 >hide private</a>]</span></td>
85 <td width="15%" align="right" valign="top" class="summary">
86 <span class="summary-type"> </span>
87 </td><td class="summary">
88 <a href="lxml.tests.test_objectify.ObjectifyTestCase-class.html" class="summary-name">ObjectifyTestCase</a><br />
89 Test cases for lxml.objectify
93 <!-- ==================== FUNCTIONS ==================== -->
94 <a name="section-Functions"></a>
95 <table class="summary" border="1" cellpadding="3"
96 cellspacing="0" width="100%" bgcolor="white">
97 <tr bgcolor="#70b0f0" class="table-header">
98 <td colspan="2" class="table-header">
99 <table border="0" cellpadding="0" cellspacing="0" width="100%">
101 <td align="left"><span class="table-header">Functions</span></td>
102 <td align="right" valign="top"
103 ><span class="options">[<a href="#section-Functions"
104 class="privatelink" onclick="toggle_private();"
105 >hide private</a>]</span></td>
111 <td width="15%" align="right" valign="top" class="summary">
112 <span class="summary-type"> </span>
113 </td><td class="summary">
114 <table width="100%" cellpadding="0" cellspacing="0" border="0">
116 <td><span class="summary-sig"><a name="test_suite"></a><span class="summary-sig-name">test_suite</span>()</span></td>
117 <td align="right" valign="top">
118 <span class="codelink"><a href="lxml.tests.test_objectify-pysrc.html#test_suite">source code</a></span>
127 <!-- ==================== VARIABLES ==================== -->
128 <a name="section-Variables"></a>
129 <table class="summary" border="1" cellpadding="3"
130 cellspacing="0" width="100%" bgcolor="white">
131 <tr bgcolor="#70b0f0" class="table-header">
132 <td colspan="2" class="table-header">
133 <table border="0" cellpadding="0" cellspacing="0" width="100%">
135 <td align="left"><span class="table-header">Variables</span></td>
136 <td align="right" valign="top"
137 ><span class="options">[<a href="#section-Variables"
138 class="privatelink" onclick="toggle_private();"
139 >hide private</a>]</span></td>
145 <td width="15%" align="right" valign="top" class="summary">
146 <span class="summary-type"> </span>
147 </td><td class="summary">
148 <a name="PYTYPE_NAMESPACE"></a><span class="summary-name">PYTYPE_NAMESPACE</span> = <code title="'http://codespeak.net/lxml/objectify/pytype'"><code class="variable-quote">'</code><code class="variable-string">http://codespeak.net/lxml/objectify/pytype</code><code class="variable-quote">'</code></code>
152 <td width="15%" align="right" valign="top" class="summary">
153 <span class="summary-type"> </span>
154 </td><td class="summary">
155 <a name="XML_SCHEMA_NS"></a><span class="summary-name">XML_SCHEMA_NS</span> = <code title="'http://www.w3.org/2001/XMLSchema'"><code class="variable-quote">'</code><code class="variable-string">http://www.w3.org/2001/XMLSchema</code><code class="variable-quote">'</code></code>
159 <td width="15%" align="right" valign="top" class="summary">
160 <span class="summary-type"> </span>
161 </td><td class="summary">
162 <a href="lxml.tests.test_objectify-module.html#XML_SCHEMA_INSTANCE_NS" class="summary-name">XML_SCHEMA_INSTANCE_NS</a> = <code title="'http://www.w3.org/2001/XMLSchema-instance'"><code class="variable-quote">'</code><code class="variable-string">http://www.w3.org/2001/XMLSchema-ins</code><code class="variable-ellipsis">...</code></code>
166 <td width="15%" align="right" valign="top" class="summary">
167 <span class="summary-type"> </span>
168 </td><td class="summary">
169 <a href="lxml.tests.test_objectify-module.html#XML_SCHEMA_INSTANCE_TYPE_ATTR" class="summary-name">XML_SCHEMA_INSTANCE_TYPE_ATTR</a> = <code title="'{http://www.w3.org/2001/XMLSchema-instance}type'"><code class="variable-quote">'</code><code class="variable-string">{http://www.w3.org/2001/XMLSc</code><code class="variable-ellipsis">...</code></code>
173 <td width="15%" align="right" valign="top" class="summary">
174 <span class="summary-type"> </span>
175 </td><td class="summary">
176 <a href="lxml.tests.test_objectify-module.html#XML_SCHEMA_NIL_ATTR" class="summary-name">XML_SCHEMA_NIL_ATTR</a> = <code title="'{http://www.w3.org/2001/XMLSchema-instance}nil'"><code class="variable-quote">'</code><code class="variable-string">{http://www.w3.org/2001/XMLSchema-insta</code><code class="variable-ellipsis">...</code></code>
180 <td width="15%" align="right" valign="top" class="summary">
181 <span class="summary-type"> </span>
182 </td><td class="summary">
183 <a name="TREE_PYTYPE"></a><span class="summary-name">TREE_PYTYPE</span> = <code title="'TREE'"><code class="variable-quote">'</code><code class="variable-string">TREE</code><code class="variable-quote">'</code></code>
187 <td width="15%" align="right" valign="top" class="summary">
188 <span class="summary-type"> </span>
189 </td><td class="summary">
190 <a href="lxml.tests.test_objectify-module.html#DEFAULT_NSMAP" class="summary-name">DEFAULT_NSMAP</a> = <code title="{'py': 'http://codespeak.net/lxml/objectify/pytype',
191 'xsd': 'http://www.w3.org/2001/XMLSchema',
192 'xsi': 'http://www.w3.org/2001/XMLSchema-instance'}"><code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">py</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">http://codespeak.net/lxml/objectify/py</code><code class="variable-ellipsis">...</code></code>
196 <td width="15%" align="right" valign="top" class="summary">
197 <span class="summary-type"> </span>
198 </td><td class="summary">
199 <a href="lxml.tests.test_objectify-module.html#objectclass2xsitype" class="summary-name">objectclass2xsitype</a> = <code title="{<type 'lxml.objectify.BoolElement'>: ('boolean'),
200 <type 'lxml.objectify.StringElement'>: ('string',
207 ..."><code class="variable-group">{</code><type 'lxml.objectify.BoolElement'><code class="variable-op">: </code><code class="variable-group">(</code><code class="variable-quote">'</code><code class="variable-ellipsis">...</code></code>
211 <td width="15%" align="right" valign="top" class="summary">
212 <span class="summary-type"> </span>
213 </td><td class="summary">
214 <a href="lxml.tests.test_objectify-module.html#xsitype2objclass" class="summary-name">xsitype2objclass</a> = <code title="{'ENTITY': <type 'lxml.objectify.StringElement'>,
215 'ID': <type 'lxml.objectify.StringElement'>,
216 'IDREF': <type 'lxml.objectify.StringElement'>,
217 'NCName': <type 'lxml.objectify.StringElement'>,
218 'NMTOKEN': <type 'lxml.objectify.StringElement'>,
219 'Name': <type 'lxml.objectify.StringElement'>,
220 'boolean': <type 'lxml.objectify.BoolElement'>,
221 'byte': <type 'lxml.objectify.IntElement'>,
222 ..."><code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">ENTITY</code><code class="variable-quote">'</code><code class="variable-op">: </code><type 'lxml.objectify.StringElem<code class="variable-ellipsis">...</code></code>
226 <td width="15%" align="right" valign="top" class="summary">
227 <span class="summary-type"> </span>
228 </td><td class="summary">
229 <a href="lxml.tests.test_objectify-module.html#objectclass2pytype" class="summary-name">objectclass2pytype</a> = <code title="{<type 'lxml.objectify.BoolElement'>: 'bool',
230 <type 'lxml.objectify.StringElement'>: 'str',
231 <type 'lxml.objectify.FloatElement'>: 'float',
232 <type 'lxml.objectify.IntElement'>: 'int'}"><code class="variable-group">{</code><type 'lxml.objectify.BoolElement'><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">bo</code><code class="variable-ellipsis">...</code></code>
236 <td width="15%" align="right" valign="top" class="summary">
237 <span class="summary-type"> </span>
238 </td><td class="summary">
239 <a href="lxml.tests.test_objectify-module.html#pytype2objclass" class="summary-name">pytype2objclass</a> = <code title="{'bool': <type 'lxml.objectify.BoolElement'>,
240 'float': <type 'lxml.objectify.FloatElement'>,
241 'int': <type 'lxml.objectify.IntElement'>,
242 'str': <type 'lxml.objectify.StringElement'>}"><code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">bool</code><code class="variable-quote">'</code><code class="variable-op">: </code><type 'lxml.objectify.BoolElement'><code class="variable-ellipsis">...</code></code>
246 <td width="15%" align="right" valign="top" class="summary">
247 <span class="summary-type"> </span>
248 </td><td class="summary">
249 <a href="lxml.tests.test_objectify-module.html#xml_str" class="summary-name">xml_str</a> = <code title="'''<obj:root xmlns:obj="objectified" xmlns:other="otherNS">
250 <obj:c1 a1="A1" a2="A2" other:a3="A3">
251 <obj:c2>0</obj:c2>
252 <obj:c2>1</obj:c2>
253 <obj:c2>2</obj:c2>
254 <other:c2>3</other:c2>
255 <c2>4</c2>
257 ..."><code class="variable-quote">'</code><code class="variable-string"><obj:root xmlns:obj="objectified" xmlns:other="othe</code><code class="variable-ellipsis">...</code></code>
261 <td width="15%" align="right" valign="top" class="summary">
262 <span class="summary-type"> </span>
263 </td><td class="summary">
264 <a name="__package__"></a><span class="summary-name">__package__</span> = <code title="'lxml.tests'"><code class="variable-quote">'</code><code class="variable-string">lxml.tests</code><code class="variable-quote">'</code></code>
268 <td width="15%" align="right" valign="top" class="summary">
269 <span class="summary-type"> </span>
270 </td><td class="summary">
271 <a name="v"></a><span class="summary-name">v</span> = <code title="'NMTOKEN'"><code class="variable-quote">'</code><code class="variable-string">NMTOKEN</code><code class="variable-quote">'</code></code>
275 <!-- ==================== VARIABLES DETAILS ==================== -->
276 <a name="section-VariablesDetails"></a>
277 <table class="details" border="1" cellpadding="3"
278 cellspacing="0" width="100%" bgcolor="white">
279 <tr bgcolor="#70b0f0" class="table-header">
280 <td colspan="2" class="table-header">
281 <table border="0" cellpadding="0" cellspacing="0" width="100%">
283 <td align="left"><span class="table-header">Variables Details</span></td>
284 <td align="right" valign="top"
285 ><span class="options">[<a href="#section-VariablesDetails"
286 class="privatelink" onclick="toggle_private();"
287 >hide private</a>]</span></td>
293 <a name="XML_SCHEMA_INSTANCE_NS"></a>
295 <table class="details" border="1" cellpadding="3"
296 cellspacing="0" width="100%" bgcolor="white">
298 <h3 class="epydoc">XML_SCHEMA_INSTANCE_NS</h3>
304 <dd><table><tr><td><pre class="variable">
305 <code class="variable-quote">'</code><code class="variable-string">http://www.w3.org/2001/XMLSchema-instance</code><code class="variable-quote">'</code>
306 </pre></td></tr></table>
311 <a name="XML_SCHEMA_INSTANCE_TYPE_ATTR"></a>
313 <table class="details" border="1" cellpadding="3"
314 cellspacing="0" width="100%" bgcolor="white">
316 <h3 class="epydoc">XML_SCHEMA_INSTANCE_TYPE_ATTR</h3>
322 <dd><table><tr><td><pre class="variable">
323 <code class="variable-quote">'</code><code class="variable-string">{http://www.w3.org/2001/XMLSchema-instance}type</code><code class="variable-quote">'</code>
324 </pre></td></tr></table>
329 <a name="XML_SCHEMA_NIL_ATTR"></a>
331 <table class="details" border="1" cellpadding="3"
332 cellspacing="0" width="100%" bgcolor="white">
334 <h3 class="epydoc">XML_SCHEMA_NIL_ATTR</h3>
340 <dd><table><tr><td><pre class="variable">
341 <code class="variable-quote">'</code><code class="variable-string">{http://www.w3.org/2001/XMLSchema-instance}nil</code><code class="variable-quote">'</code>
342 </pre></td></tr></table>
347 <a name="DEFAULT_NSMAP"></a>
349 <table class="details" border="1" cellpadding="3"
350 cellspacing="0" width="100%" bgcolor="white">
352 <h3 class="epydoc">DEFAULT_NSMAP</h3>
358 <dd><table><tr><td><pre class="variable">
359 <code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">py</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">http://codespeak.net/lxml/objectify/pytype</code><code class="variable-quote">'</code><code class="variable-op">,</code>
360 <code class="variable-quote">'</code><code class="variable-string">xsd</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">http://www.w3.org/2001/XMLSchema</code><code class="variable-quote">'</code><code class="variable-op">,</code>
361 <code class="variable-quote">'</code><code class="variable-string">xsi</code><code class="variable-quote">'</code><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">http://www.w3.org/2001/XMLSchema-instance</code><code class="variable-quote">'</code><code class="variable-group">}</code>
362 </pre></td></tr></table>
367 <a name="objectclass2xsitype"></a>
369 <table class="details" border="1" cellpadding="3"
370 cellspacing="0" width="100%" bgcolor="white">
372 <h3 class="epydoc">objectclass2xsitype</h3>
378 <dd><table><tr><td><pre class="variable">
379 <code class="variable-group">{</code><type 'lxml.objectify.BoolElement'><code class="variable-op">: </code><code class="variable-group">(</code><code class="variable-quote">'</code><code class="variable-string">boolean</code><code class="variable-quote">'</code><code class="variable-group">)</code><code class="variable-op">,</code>
380 <type 'lxml.objectify.StringElement'><code class="variable-op">: </code><code class="variable-group">(</code><code class="variable-quote">'</code><code class="variable-string">string</code><code class="variable-quote">'</code><code class="variable-op">,</code>
381 <code class="variable-quote">'</code><code class="variable-string">normalizedString</code><code class="variable-quote">'</code><code class="variable-op">,</code>
382 <code class="variable-quote">'</code><code class="variable-string">token</code><code class="variable-quote">'</code><code class="variable-op">,</code>
383 <code class="variable-quote">'</code><code class="variable-string">language</code><code class="variable-quote">'</code><code class="variable-op">,</code>
384 <code class="variable-quote">'</code><code class="variable-string">Name</code><code class="variable-quote">'</code><code class="variable-op">,</code>
385 <code class="variable-quote">'</code><code class="variable-string">NCName</code><code class="variable-quote">'</code><code class="variable-op">,</code>
386 <code class="variable-quote">'</code><code class="variable-string">ID</code><code class="variable-quote">'</code><code class="variable-op">,</code>
387 <code class="variable-ellipsis">...</code>
388 </pre></td></tr></table>
393 <a name="xsitype2objclass"></a>
395 <table class="details" border="1" cellpadding="3"
396 cellspacing="0" width="100%" bgcolor="white">
398 <h3 class="epydoc">xsitype2objclass</h3>
404 <dd><table><tr><td><pre class="variable">
405 <code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">ENTITY</code><code class="variable-quote">'</code><code class="variable-op">: </code><type 'lxml.objectify.StringElement'><code class="variable-op">,</code>
406 <code class="variable-quote">'</code><code class="variable-string">ID</code><code class="variable-quote">'</code><code class="variable-op">: </code><type 'lxml.objectify.StringElement'><code class="variable-op">,</code>
407 <code class="variable-quote">'</code><code class="variable-string">IDREF</code><code class="variable-quote">'</code><code class="variable-op">: </code><type 'lxml.objectify.StringElement'><code class="variable-op">,</code>
408 <code class="variable-quote">'</code><code class="variable-string">NCName</code><code class="variable-quote">'</code><code class="variable-op">: </code><type 'lxml.objectify.StringElement'><code class="variable-op">,</code>
409 <code class="variable-quote">'</code><code class="variable-string">NMTOKEN</code><code class="variable-quote">'</code><code class="variable-op">: </code><type 'lxml.objectify.StringElement'><code class="variable-op">,</code>
410 <code class="variable-quote">'</code><code class="variable-string">Name</code><code class="variable-quote">'</code><code class="variable-op">: </code><type 'lxml.objectify.StringElement'><code class="variable-op">,</code>
411 <code class="variable-quote">'</code><code class="variable-string">boolean</code><code class="variable-quote">'</code><code class="variable-op">: </code><type 'lxml.objectify.BoolElement'><code class="variable-op">,</code>
412 <code class="variable-quote">'</code><code class="variable-string">byte</code><code class="variable-quote">'</code><code class="variable-op">: </code><type 'lxml.objectify.IntElement'><code class="variable-op">,</code>
413 <code class="variable-ellipsis">...</code>
414 </pre></td></tr></table>
419 <a name="objectclass2pytype"></a>
421 <table class="details" border="1" cellpadding="3"
422 cellspacing="0" width="100%" bgcolor="white">
424 <h3 class="epydoc">objectclass2pytype</h3>
430 <dd><table><tr><td><pre class="variable">
431 <code class="variable-group">{</code><type 'lxml.objectify.BoolElement'><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">bool</code><code class="variable-quote">'</code><code class="variable-op">,</code>
432 <type 'lxml.objectify.StringElement'><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">str</code><code class="variable-quote">'</code><code class="variable-op">,</code>
433 <type 'lxml.objectify.FloatElement'><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">float</code><code class="variable-quote">'</code><code class="variable-op">,</code>
434 <type 'lxml.objectify.IntElement'><code class="variable-op">: </code><code class="variable-quote">'</code><code class="variable-string">int</code><code class="variable-quote">'</code><code class="variable-group">}</code>
435 </pre></td></tr></table>
440 <a name="pytype2objclass"></a>
442 <table class="details" border="1" cellpadding="3"
443 cellspacing="0" width="100%" bgcolor="white">
445 <h3 class="epydoc">pytype2objclass</h3>
451 <dd><table><tr><td><pre class="variable">
452 <code class="variable-group">{</code><code class="variable-quote">'</code><code class="variable-string">bool</code><code class="variable-quote">'</code><code class="variable-op">: </code><type 'lxml.objectify.BoolElement'><code class="variable-op">,</code>
453 <code class="variable-quote">'</code><code class="variable-string">float</code><code class="variable-quote">'</code><code class="variable-op">: </code><type 'lxml.objectify.FloatElement'><code class="variable-op">,</code>
454 <code class="variable-quote">'</code><code class="variable-string">int</code><code class="variable-quote">'</code><code class="variable-op">: </code><type 'lxml.objectify.IntElement'><code class="variable-op">,</code>
455 <code class="variable-quote">'</code><code class="variable-string">str</code><code class="variable-quote">'</code><code class="variable-op">: </code><type 'lxml.objectify.StringElement'><code class="variable-group">}</code>
456 </pre></td></tr></table>
461 <a name="xml_str"></a>
463 <table class="details" border="1" cellpadding="3"
464 cellspacing="0" width="100%" bgcolor="white">
466 <h3 class="epydoc">xml_str</h3>
472 <dd><table><tr><td><pre class="variable">
473 <code class="variable-quote">'''</code><code class="variable-string"><obj:root xmlns:obj="objectified" xmlns:other="otherNS"></code>
474 <code class="variable-string"> <obj:c1 a1="A1" a2="A2" other:a3="A3"></code>
475 <code class="variable-string"> <obj:c2>0</obj:c2></code>
476 <code class="variable-string"> <obj:c2>1</obj:c2></code>
477 <code class="variable-string"> <obj:c2>2</obj:c2></code>
478 <code class="variable-string"> <other:c2>3</other:c2></code>
479 <code class="variable-string"> <c2>4</c2></code>
480 <code class="variable-string"> </obj:c1></code>
481 <code class="variable-ellipsis">...</code>
482 </pre></td></tr></table>
488 <!-- ==================== NAVIGATION BAR ==================== -->
489 <table class="navbar" border="0" width="100%" cellpadding="0"
490 bgcolor="#a0c0ff" cellspacing="0">
493 <th> <a
494 href="lxml-module.html">Home</a> </th>
497 <th> <a
498 href="module-tree.html">Trees</a> </th>
501 <th> <a
502 href="identifier-index.html">Indices</a> </th>
505 <th> <a
506 href="help.html">Help</a> </th>
508 <!-- Project homepage -->
509 <th class="navbar" align="right" width="100%">
510 <table border="0" cellpadding="0" cellspacing="0">
511 <tr><th class="navbar" align="center"
512 ><a class="navbar" target="_top" href="/">lxml API</a></th>
516 <table border="0" cellpadding="0" cellspacing="0" width="100%%">
518 <td align="left" class="footer">
519 Generated by Epydoc 3.0.1
520 on Thu Jul 9 18:29:53 2020
522 <td align="right" class="footer">
523 <a target="mainFrame" href="http://epydoc.sourceforge.net"
524 >http://epydoc.sourceforge.net</a>
529 <script type="text/javascript">
531 // Private objects are initially displayed (because if
532 // javascript is turned off then we want them to be
533 // visible); but by default, we want to hide them. So hide
534 // them unless we have a cookie that says to show them.