W3C home > Mailing lists > Public > www-html-editor@w3.org > October to December 2003

error in pre.content of XHTML 1.0

From: Paolo Marinelli <pmarinel@cs.unibo.it>
Date: Wed, 3 Dec 2003 19:03:50 +0100 (CET)
To: www-html-editor@w3.org
Message-ID: <Pine.LNX.4.44.0312031824390.7269-100000@crown.cs.unibo.it>

  the XHTML-1.0-Strict DTD defines the pre element as:

 <!-- content is %Inline; excluding "img|object|big|small|sub|sup" -->
 <!ELEMENT pre %pre.content;>

On the other, the %pre.content entity is defined as:

 <!-- pre uses %Inline excluding big, small, sup or sup -->
 <!ENTITY % pre.content
   "(#PCDATA | a | %fontstyle; | %phrase; | %special.pre; | %misc.inline;
      | %inline.forms;)*">

The %phrase; entity includes sub and sup elements, which should be
excluded and the %fontstyle; entity includes big and small elements,
which should be excluded.

Appendix B of XHTML 1.0 (Second Edition) revised 1 August 2002 states:

     must not contain the img, object, big, small, sub or sup elements.

Thus, I think that the pre.content definition is not correct.

Furthermore, the comment "pre uses %Inline excluding big, small, sup or
sup" (which precedes the pre.content definition) is not compatible with
what Appendix B states about the pre element.

   Paolo Marinelli.
Received on Wednesday, 3 December 2003 13:11:46 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:08:51 UTC