error in pre.content of XHTML 1.0

Hello,
  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:

  pre
     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.

Bye,
   Paolo Marinelli.

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