W3C home > Mailing lists > Public > public-html-comments@w3.org > August 2011

[html5] Pseudo-namespaces in HTML

From: Bert Bos <bert@w3.org>
Date: Mon, 8 Aug 2011 20:58:52 +0200
To: public-html-comments@w3.org
Message-Id: <201108082058.53136.bert@w3.org>
A personal comment on http://www.w3.org/TR/2011/WD-

Chapter 10 seems to say that this CSS style sheet:

    @namespace url(http://www.w3.org/1999/xhtml);
    sup { vertical-align: super; }

should in the future match SUP elements in HTML as well as in XHTML. 
Currently, HTML documents don't have a namespace, and so it is easy to 
distinguish HTML from XHTML in CSS by omitting the namespace:

    h1 {...}    /* HTML and XHTML */
    x|h1 {...}  /* XHTML only (after suitable defn of "x") */
    |h1 {...}   /* HTML only */

CSS has been changed to remove differences between HTML and XHTML, so 
there is now less need to distinguish them, but people may still want 
to. And there probably are existing style sheets with such rules. 
(Several current browsers are buggy and fail to apply "|h1" even now, 
but there are other UAs that are correct.)

  Bert Bos                                ( W 3 C ) http://www.w3.org/
  http://www.w3.org/people/bos                               W3C/ERCIM
  bert@w3.org                             2004 Rt des Lucioles / BP 93
  +33 (0)4 92 38 76 92            06902 Sophia Antipolis Cedex, France
Received on Monday, 8 August 2011 18:59:16 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 20:26:27 UTC