W3C home > Mailing lists > Public > whatwg@whatwg.org > July 2007

[whatwg] Allowed characters in attribute names (was: Re: Steps for finding one or two numbers in a string)

From: Simon Pieters <zcorpan@gmail.com>
Date: Fri, 06 Jul 2007 12:46:12 +0200
Message-ID: <op.tu1hjauf7a8kvn@hp-a0a83fcd39d2>
On Fri, 22 Jun 2007 04:19:53 +0200, Ian Hickson <ian at hixie.ch> wrote:

>>   <a =="">
>>
>> Safari, Opera and Firefox drop the attribute. IE has an attribute with
>> the name being the empty string and the value being ="". The HTML5
>> parsing spec says that there should be an attribute with the name = and
>> the value the empty string. The "Before attribute name state" part of
>> the parsing spec might have to be revisited.
>
> I don't see any harm in leaving the spec as-is here, given the lack of
> interoperability and the fact that there's no real reason to be using
> attributes with this name anyway. Whatever's simplest to implement is
> probably best here.

Since it doesn't match any browser, and probably is an authoring mistake  
(that would silently pass conformance checking in the case of <embed>),  
could it be a parse error? (Also update the wording in the syntax section  
if so.)

-- 
Simon Pieters
Received on Friday, 6 July 2007 03:46:12 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:36 UTC