I just read the note under the XHTML spec
(http://www.w3.org/TR/xhtml1/#h-4.9) that explains how XML DTD
notation doesn't provided for the exclusion of elements from
containment by the element being defined. For example, there is no way
to indicate that an <a> element can't contain another one.
I see that the strict HTML DTD shows
-(A)
in the definition of the <a> element. But AFAIK this means that an
anchor can't *directly* contain another one, and it doesn't cover a
situation like (attributes omitted)
<a>some <i>italicized <a>text</a> goes </i>here</a>
I looked for a note in the HTML spec that would correspond with the
one in the XHTML notes indicating that the above code isn't
acceptable, but didn't find one. Can anyone explain the particulars?
By the way, in the XHTML notes, only a few specific prohibitions are
noted (http://www.w3.org/TR/xhtml1/#prohibitions), but these don't
include nested <i>. What, in either XHTML or HTML, prevents an <i>
nested inside another one? Or am I wrong that such nesting is
prohibited--but in that case, what is the meaning of nested <i>?
--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.
(http://www.w3.org/TR/xhtml1/#h-4.9) that explains how XML DTD
notation doesn't provided for the exclusion of elements from
containment by the element being defined. For example, there is no way
to indicate that an <a> element can't contain another one.
I see that the strict HTML DTD shows
-(A)
in the definition of the <a> element. But AFAIK this means that an
anchor can't *directly* contain another one, and it doesn't cover a
situation like (attributes omitted)
<a>some <i>italicized <a>text</a> goes </i>here</a>
I looked for a note in the HTML spec that would correspond with the
one in the XHTML notes indicating that the above code isn't
acceptable, but didn't find one. Can anyone explain the particulars?
By the way, in the XHTML notes, only a few specific prohibitions are
noted (http://www.w3.org/TR/xhtml1/#prohibitions), but these don't
include nested <i>. What, in either XHTML or HTML, prevents an <i>
nested inside another one? Or am I wrong that such nesting is
prohibited--but in that case, what is the meaning of nested <i>?
--
Harlan Messinger
Remove the first dot from my e-mail address.
Veuillez ôter le premier point de mon adresse de courriel.
Comment