W3C home > Mailing lists > Public > www-style@w3.org > July 2007

Re: [html5] Multiple IDs for an element?

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Tue, 24 Jul 2007 18:37:37 +0200
To: "Jens Meiert" <jens.meiert@erde3.com>
Cc: www-style@w3.org
Message-ID: <4baca3dm3qrk5vdu1t6q63ad79rqko4p8i@hive.bjoern.hoehrmann.de>

* Jens Meiert wrote:
>This is probably due to historical reasons (SGML?), but why isn't it
>(or shouldn't it be) allowed to use multiple IDs for a single element?

You are right about SGML, but more importantly, 1:1 relationships are
simpler than 1:n relationships. It's easy to answer "what is this
element's unique identifier" (e.g. if you want to link the element),
and it's easy to change the identifier. To make the model more flexible
you have to increase complexity, and this is not necessarily a good
tradeoff.
-- 
Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://bjoern.hoehrmann.de
Weinh. Str. 22 · Telefon: +49(0)621/4309674 · http://www.bjoernsworld.de
68309 Mannheim · PGP Pub. KeyID: 0xA4357E78 · http://www.websitedev.de/ 
Received on Tuesday, 24 July 2007 16:38:43 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:54:51 GMT