On 29/03/11 03:10, Russell Keith-Magee wrote: > Of course, this depends a great deal on the details of exactly what is > to be done, and where. Luke's proposal says we should "use HTML5 > features at least as an option in places like the admin", but the > provided patch is a unilateral switch to HTML5 doctypes in the admin. > Optional support is a completely different beast from only providing > HTML5 rendering.
The initial proposal is simply switch to HTML5 doctypes for supplied templates. This means that if some people have widgets that rely on HTML5 features, they can render those widgets in the context of the admin and have them work and have them valid. I'm not sure what you mean by "only providing HTML5 rendering". The existing rendering of all widgets is already both XHTML and HTML5 compliant, so changing the doctype doesn't affect that. I'm not aware that this doctype switch would cause any problems with either validity or functionality for any provided or 3rd party widgets that are outputting XHTML - really because we've never had true XHTML output - we've had XHTML served as HTML, which works like HTML in almost every respect. The further enhancements I'm thinking of are things like an EmailInput widget (which I'd suggest was the default widget for EmailField, but could be just available in django/forms/widgets.py). This widget would output <input type="email">. AFAIK, this is fully backwards compatible with browsers that don't support it, since <inputs> default to type="text" if the browser doesn't recognise the "type" attribute. Regards, Luke -- If you can't answer a man's arguments, all is not lost; you can still call him vile names. (Elbert Hubbard) Luke Plant || http://lukeplant.me.uk/ -- You received this message because you are subscribed to the Google Groups "Django developers" group. To post to this group, send email to django-developers@googlegroups.com. To unsubscribe from this group, send email to django-developers+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-developers?hl=en.