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

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