I'm looking at
\InstantRails-2.0-win\ruby\lib\ruby\gems\1.8\gems\actionpack-2.3.5\lib\action_view\helpers\form_helper.rb
at line 509. The comment reads:
# label(:post, :title, "A short title") # # => <label for="post_title">A short title</label>
When I pass <label for="post_title">A short title</label> through an HTML validator (e.g. Validation Results - W3C Markup Validator )... the message I get is
- - - - value of attribute "for" must be a single token
This attribute can not take a space-separated list of words as a value, but only one word ("token"). This may also be caused by the use of a space for the value of an attribute which does not permit it. - - - -
What I think the validator is looking for is this <label for=post_title>A short title</label> instead of <label for="post_title">A short title</label>
Am I interpreting this correctly?