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
A short title
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
A short title
instead of
A short title
Am I interpreting this correctly?