W3C home > Mailing lists > Public > whatwg@whatwg.org > November 2006

[whatwg] Allow omitting ="" for attributes?

From: Simon Pieters <zcorpan@hotmail.com>
Date: Tue, 14 Nov 2006 19:18:35 +0000
Message-ID: <BAY109-F38E8EA6B1504A01DE9EFB9B4EB0@phx.gbl>
Hi,

I was thinking about making omitted ="" for all attributes conforming. I'm 
not sure it's a good idea, but might be worth considering.

Off the top of my head, cases where empty attribute values are used often:

   * To disable <dfn> linking (<code title>).
   * For images with empty alt text (<img alt src=foo>).

Pros:

   * Three characters less to type.

Cons:

   * Less obvious which attributes are boolean attributes and which are not 
by looking at the source.

Regards,
Simon Pieters

_________________________________________________________________
S?k bilder p? glammiga k?ndisar! http://search.msn.se
Received on Tuesday, 14 November 2006 11:18:35 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:58:49 UTC