W3C home > Mailing lists > Public > www-html-editor@w3.org > July to September 2007

XHTML Role attribute module

From: Jason White <jason@jasonjgw.net>
Date: Sun, 19 Aug 2007 15:51:08 +1000
To: www-html-editor@w3.org
Message-ID: <20070819055108.GA5718@jdc.local>

This question applies to the XHTML Role Attribute Module draft and to the
corresponding section in the published XHTML 2.0 working draft.

"The ROLE attribute takes as its value one or more white-space-separated
QNames" (section 3).

How should user agents treat a role attribute containing two or more QNames,
the semantics of which, and hence the behaviours associated with which, are
mutually exclusive? This is the case in which the author of the XHTML 
document specifies mutually incompatible roles for the same element.

Informally, I would expect the user agent's implementation of role to operate
somewhat as follows:

1. Taking namespace qualifications into account, obtain the intersection of
the set of roles specified in the value of the ROLE attribute, and the set of
roles recognized by the user agent.

2. Perform whatever processing (in the most general sense of the term) is
associated with each of those roles.

Unless I am mistaken (which is perfectly possible) there is scope for an
interoperability problem to arise when mutually inconsistent roles are
specified: user agents could differ regarding which role is given precedence
in this circumstance.

A simple rule, for example that the first role specified in the value of the
attribute takes priority over later, incompatible roles, would suffice to
address this problem.
Received on Sunday, 19 August 2007 05:51:21 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Tuesday, 27 March 2012 18:17:56 GMT