You are here: not valid HTML error « HTML « IT news, forums, messages
not valid HTML error

Posted by John Salerno on 10/06/06 14:08

I got this error while validating my page:

document type does not allow element "UL" here; assuming missing "LI"
start-tag.

Here's the suspicious code. The problem seems to be that I can't nest
list blocks within other list blocks. But if not, how can I create this
"subnote" effect?

Thanks.


<ol>
<li>XRC creates an <code>object</code> node that represents the
particular widget you are making.</li>
<li>Instead of the call to <code>wx.Button</code>, XRC uses a
<code>class</code> attribute with the value "wxButton."</li>
<ul>
<li>Note that XRC can only use the C++ class names, i.e.
there is no dot operator.</li>
</ul>
<li>XRC uses an attribute called <code>name</code> to refer to
this object in your Python program. The <code>name</code> attribute
actually corresponds to the <code>id</code> parameter in the widget's
constructor. You assign it a string value in the XRC file and wxPython
will create a unique ID for it internally.</li>
<ul>
<li>This value does <em>not</em> have to be the same as the
name of the variable you will use to refer to this widget in your
program. The value of <code>name</code> is not the name you will use to
refer to this object in your program.</li>
</ul>
<li>Once this object node is created, the keyword parameters of
the Button's constructor become child nodes, each with the value of that
particular argument. So here we have the <code>label</code> node created
with the text that will appear in the Button, just as if we had manually
written the Button constructor with the <code>label</code> argument.</li>
<li>The <code>parent</code> argument is not created as a child
node. Instead, the entire Button object node will be a child node of a
Panel object, which in turn will be a child node of a Frame object. This
is how wxPython knows the parent-child relationship. Below you can see
the entire structure of a Frame with a Button.</li>
</ol>

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация