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

[whatwg] Attribute for holding private data for scripting

From: Sam Ruby <rubys@intertwingly.net>
Date: Tue, 10 Apr 2007 14:21:27 -0400
Message-ID: <3d4032300704101121m29beb14fn6aa2566de239bd68@mail.gmail.com>
On 4/10/07, Simon Pieters <zcorpan at gmail.com> wrote:
> Or allow any attribute that starts with "x_" or something (to prevent
> clashing with future revisions of HTML), as private attributes.

Instead of "starts with x_", how about "contains a colon"?

A conformance checker could ensure that there is a corresponding xmlns
declaration that applies here, and possibly even do additional
verification if it recognizes the namespace.

An HTML5 parser would, of course, recover from references to
undeclared namespaces, placing the entire attribute name (including
the prefix and the colon) into the DOM in such situations.
Received on Tuesday, 10 April 2007 11:21:27 UTC

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