Hi,

My earlier confusion with the newforms 'id' attributes was caused by
some poor wording in the documentation.

Just above this link is some unnecessarily wordy text:

http://www.djangoproject.com/documentation/newforms/#as-p

"Each text label is surrounded in an HTML <label> tag, which points to
the appropriate form field via its id. Its id, in turn, is generated
by prepending 'id_' to the field name."

The preposition "via" is used incorrectly - "its id" refers to the
label tag in this case. I think a clearer wording is:

"Each text label is surrounded in an HTML <label> tag, whose 'for'
attribute contains the id of the appropriate form field."

vic

-- 
"Never attribute to malice that which can be adequately explained by
stupidity."  - Hanlon's Razor

--~--~---------~--~----~------------~-------~--~----~
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 [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to