#8440: Change forms default auto_id='id-%s'
-------------------------------+--------------------------------------------
 Reporter:  [EMAIL PROTECTED]  |       Owner:  nobody    
   Status:  new                |   Milestone:            
Component:  Forms              |     Version:  SVN       
 Keywords:                     |       Stage:  Unreviewed
Has_patch:  1                  |  
-------------------------------+--------------------------------------------
 Hey all,

 I don't think that the default auto_id for form fields is compatible with
 CSS1, since it starts with "id_". A la http://www.w3.org/TR/REC-
 CSS1#appendix-b:

 {{{
 unicode         \\[0-9a-f]{1,4}
 latin1          [¡-ÿ]
 escape          {unicode}|\\[ -~¡-ÿ]
 stringchar      {escape}|{latin1}|[ !#$%&(-~]
 nmstrt          [a-z]|{latin1}|{escape}
 nmchar          [-a-z0-9]|{latin1}|{escape}
 ident           {nmstrt}{nmchar}*
 name            {nmchar}+
 }}}

 I believe it's a real simple patch (attached), but I haven't tested it
 rigorously.

 Cheers,

 Chris

-- 
Ticket URL: <http://code.djangoproject.com/ticket/8440>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to