[Zpt] XHTML validation and <span>
Todd Coram
todd@digicool.com
Fri, 9 Mar 2001 09:22:29 -0500
This is a multi-part message in MIME format.
------=_NextPart_000_0062_01C0A87A.76C2D390
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
I may be the only one goofing this up, but XHTML doesn't allow =
"arbitrary" use of <span>. I have been using spans pretty liberally, =
but this is illegal:
<span metal:define-macro=3D"something">
<p> Just something </p>
<p> That needs to be said... </p>
</span>
Span cannot contain elements like <p>. It is supposed to only be used =
for inline-elements. Browsers don't complain and non-validating parsers =
(like ZPT), don't complain, but I guess I should be doing stuff like:
<div metal:define-macro=3D"something">
<p> Just something </p>
<p> That needs to be said... </p>
</div>
-- todd
------=_NextPart_000_0062_01C0A87A.76C2D390
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META content=3D"text/html; charset=3Diso-8859-1" =
http-equiv=3DContent-Type>
<META content=3D"MSHTML 5.00.3018.900" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>I may be the only one goofing this up, =
but XHTML=20
doesn't allow "arbitrary" use of <span>. I have been using =
spans=20
pretty liberally, but this is illegal:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><span=20
metal:define-macro=3D"something"></FONT></DIV>
<DIV><FONT face=3DArial size=3D2> <p> Just something=20
</p></FONT></DIV>
<DIV><FONT face=3DArial size=3D2> <p> That needs =
to be=20
said... </p></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></span></FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>Span cannot contain elements like =
<p>. It=20
is supposed to only be used for inline-elements. Browsers don't =
complain=20
and non-validating parsers (like ZPT), don't complain, but I guess I =
should be=20
doing stuff like:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2><div=20
metal:define-macro=3D"something"></FONT></DIV>
<DIV><FONT face=3DArial size=3D2> <p> Just something =
</p>
<DIV><FONT face=3DArial size=3D2> <p> That needs to be =
said...=20
</p></FONT></DIV></FONT></DIV>
<DIV><FONT face=3DArial size=3D2></div></FONT></DIV>
<DIV> </DIV>
<DIV> </DIV>
<DIV><FONT face=3DArial size=3D2>-- todd</FONT></DIV>
<DIV> </DIV></BODY></HTML>
------=_NextPart_000_0062_01C0A87A.76C2D390--