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

Quoting Ian Hickson <ian at hixie.ch>:
> I don't understand any of the above. Could you explain it again? I really
> don't know what you are trying to say.

You should probably try harder ;-) Anyway, setting |value=""| on a form 
control
should not result in the DOM attribute value being "on". It should 
result in it
being "" and that should be submitted. (Sections 2.3 and 2.4 have to be edited
for this.)


>>>> 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.)
>
> I don't see how this contradicts what I wrote.

It does not. Sorry about that. I just want to make it clear that XML has some
stupid rules authors should be aware about when dealing with forms. 
This seemed
like the most appropriate place to add the note.

Cheers,

Anne


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

Received on Tuesday, 25 October 2005 15:50:24 UTC