Preston Holmes wrote:

> When using widget.attr how does one specify a attr that is name only,
> not key/value.
> 
> The disabled key is not a k/v attr:
> 
> <INPUT disabled name="fred" value="stone">
> 

In xhtml 1 (fwiw) it is, you are required to write disabled="disabled"
(I think) and it is also allowed to do so in html 4
See section "attribute minimisation" and
"boolean attributes" in xhtml 1.0
http://www.w3.org/TR/2002/REC-xhtml1-20020801/#h-4.5
http://www.w3.org/TR/2002/REC-xhtml1-20020801/#C_10

I imagine they'll grandfather in allowing such "unminimized"
attributes into html 5, even if xhtml has fallen by the wayside.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to