[whatwg] Start Tag Syntax

On Wed, 06 Dec 2006 16:04:20 +0600, Anne van Kesteren <annevk at opera.com> wrote:

>>> 3. The start tag may have a number of attributes, the syntax for which
>>>     is described below. Attribute names must be separated from the tag
>>>     name or a preceding unquoted attribute value, and should be
>>>     separated from a preceding quoted attribute value, by one or more
>>>     space characters.

>> Must be separated from a preceding valueless attribute as well.

> Why?
>
>    <p title=""id="test">
>
> ... is fine in in HTML. As is the equivalent with ' instead of ".

Under "valueless" I mean the case when there is no value, not even an empty one, and no equals sign, like this:

<input disabled type="text">

Here, whitespace is required between "disabled" and "type".


-- 
Alexey Feldgendler <alexey at feldgendler.ru>
[ICQ: 115226275] http://feldgendler.livejournal.com

Received on Wednesday, 6 December 2006 02:27:30 UTC