Re: [widgets] Trimming attribute values, a bad idea?

HI Simon,

On Wed, Dec 3, 2008 at 8:25 AM, Simon Pieters <simonp@opera.com> wrote:
> On Wed, 03 Dec 2008 03:51:13 +0100, Marcos Caceres
> <marcosscaceres@gmail.com> wrote:
>
>> Got a question... I've relaxed keyword attributes to be allowed to
>> have leading and trailing whitespace.
>
> Any particular reason for this? :-)
>

Just to be nicer to authors.

>
>> Now, widget user agents are
>> required to trim whitespace prior to validation/processing. Widget
>> user agents must only perform literal comparisons with trimmed values,
>> and must not perform case insensitive comparisons.
>
> In HTML5, enumerated attributes are ASCII case-insensitive with no leading
> or trailing whitespace allowed.
>
> I'm not sure how SVG and MathML handle enumerated attributes, though.
>

Ok, I'll follow HTML5 on this.

-- 
Marcos Caceres
http://datadriven.com.au

Received on Wednesday, 3 December 2008 11:43:10 UTC