[whatwg] [wf2] 2.3. Changes to existing controls

Quoting Ian Hickson <ian at hixie.ch>:
>> # so that if the value content attribute is not specified then
>> # the value DOM attribute (and the value used for submission
>> # when the controls are checked) is "on".
>>
>> Could you perhaps add that setting the value content attribute to the
>> empty string must not be considered differently from setting the value
>> content attribute?
>>
>> Note that in order to do that you would also have to change section 2.4
>> which states that setting value to the empty string means "no value
>> selected". That would result in the value used for submission being "on"
>> which is not what user agents currently do, or are supposed to do.
>> value="" should not result in the value DOM attribute being "on", but
>> "".
>
> Your two requests here seem to contradict each other. Could you clarify?

They do? How? You have to add that note because that is what UAs do and after
that you have to change section 2.4 so that the note does not make your
specification contradicting.


>> # Whitespace must also not be trimmed from any other attributes
>> # (e.g. the value attribute).
>>
>> Could you add a note that there is some form of normalization applied to
>> these attributes in XML documents as described here:
>> <http://www.w3.org/TR/REC-xml/#AVNormalize>. This could be helpful and
>> would prevent confusion.
>
> That XML rule only applies to validating parsers and to parsers exposed to
> internal subsets, IIRC.

Let me quote:

# Before the value of an attribute is passed to the application
# or checked for validity, the XML processor MUST normalize the
# attribute value by applying the algorithm below

(Also, internal subsets are required to be supported by XML parsers.)


-- 
Anne van Kesteren
<http://annevankesteren.nl/>

Received on Monday, 24 October 2005 01:52:15 UTC