View Full Version : HTML 4.01 DTD error?

05-10-2006, 02:30 AM
there is something i cannot make sense of in the DTD for the HTML 4.01 specs (all three doctypes).

For the head element, the dtd is as follows:

<!-- %head.misc; defined earlier on as "SCRIPT|STYLE|META|LINK|OBJECT" -->
<!ENTITY % head.content "TITLE & BASE?">

<!ELEMENT HEAD O O (%head.content; ) +(%head.misc; ) -- document head -->
%i18n; -- lang, dir --
profile %URI; #IMPLIED -- named dictionary of meta info --

the part that does not seem to make sense is this:

<!ELEMENT HEAD O O (%head.content; ) +(%head.misc; ) -- document head -->

shouldn't there be an '+' (addition) symbol after the '(%head.misc; )' parameter entity? %head.misc is defined as "SCRIPT|STYLE|META|LINK|OBJECT" and i am sure that we can have multiple scripts, styles, metas etc. elements in the head.