durusmail: quixote-users: single word attributes in html.htmltag()
Unicode support for Quixote 2
2004-09-03
2004-09-03
2004-09-03
2004-09-03
Quixote / mod_python - test workflow?
2004-09-04
Re: R: [Quixote-users] Quixote / mod_python - test workflow?
single word attributes in html.htmltag()
2004-09-05
Re: single word attributes in html.htmltag()
2004-09-06
2004-09-04
2004-09-08
Python Best of Breed web app snippets / small webapps
2004-09-08
2004-09-10
2004-09-09
2004-09-09
2004-09-09
2004-09-09
single word attributes in html.htmltag()
Ksenia Marasanova
2004-09-06
> I'm wondering if there is an existing way to set a single word
> attribute
> (for lack of a better description) in an htmltag.  My specific need
> for this
> is in the form2 package, I'd like to set a CheckboxWidget as "disabled"
> (under certain circumstances).
>
> details on the disabled input control available here:
> http://www.w3.org/TR/REC-html40/interact/forms.html#h-17.12
>
> an example in html:
> 
>

You can specify those attributes (I believe the name is 'boolean
attributes' :-) like this:



It will still validate against HTML 4.01 transitional, if this is a
concern. And in XHTML, it's the only valid way to specify those
attributes.

Ksenia.



reply