You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Cendil <ce...@icqmail.com> on 2003/08/01 12:15:40 UTC

Re: Illegal html in samples, with span outside of body

Not sure that its that much of an issue as they are only very brief, and in a lot of cases
incomplete, examples. I'm sure that once things get a little less hectic for the development
team (what with the book and everything) the documentation will get updated and completed.

Anyway, the HTML could be tidied up like below, keeping as many components with their 
corresponding tags:

<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html jwcid="@Shell" stylesheet="ognl:assets.stylesheet" title="MyCorp Customer Login">
  <head jwcid="$remove$">
    <link rel="stylesheet" type="text/css" href="../../style.css" title="style">
    <title>MyCorp Customer Login</title>
  </head>
  <body jwcid="@Body">
    <h1>Customer Login</h1>
    Welcome to MyCorp's Customer Portal secure login page.
    <p><span jwcid="@Insert" value="ognl:dailyMessage" class="ognl:messageClass">Daily message goes here</span></p>
  </body>
</html>

-----Original Message-----
From: Colin Sampaleanu [mailto:colinml1@exis.com] 
Sent: 31 July 2003 18:40
To: Tapestry development
Cc: tapestry-user@jakarta.apache.org
Subject: Illegal html in samples, with span outside of body


I wanted to question the existence of a fair amount of HTML in samples 
and the docs in which the span element is used in a location that makes 
the HTML file non-conformant, and see if nobody else thinks it's an issue.

If you look at the sample for Shell for example, there is a snippet like:

<html>
<head>
 <link rel="stylesheet" type="text/css" *href="../../style.css"*
title="style">  <title>MyCorp Customer Login</title> </head>

<span jwcid="$content$">
<span jwcid="@Shell
<http://jakarta.apache.org/tapestry/doc/ComponentReference/Shell.html>"
stylesheet="ognl:assets.stylesheet" title="MyCorp Customer Login"> <body
jwcid="@Body
<http://jakarta.apache.org/tapestry/doc/ComponentReference/Body.html>">

<h1>Customer Login</h1>
Welcome to MyCorp's Customer Portal secure login page.
<p>
<span jwcid="@Insert
<http://jakarta.apache.org/tapestry/doc/ComponentReference/Insert.html>"
value="ognl:dailyMessage" class="ognl:messageClass"/>

</body>
</span>
</span>
</html>

now this is actually not legal HTML, and some HTML editors would 
actually strip out or complain about the spans outside the body. Would 
it not be a good idea to make sample HTML conformant? Unfortuntately for 
the above example that would preclude using the Body component with the 
actual body tag, I think it would have to become something like:

<html>
<head>
 <link rel="stylesheet" type="text/css" *href="../../style.css"*
title="style">  <title>MyCorp Customer Login</title> </head>

<body>
<span jwcid="$content$">
<span jwcid="@Shell
<http://jakarta.apache.org/tapestry/doc/ComponentReference/Shell.html>"
stylesheet="ognl:assets.stylesheet" title="MyCorp Customer Login"> <span
jwcid="@Body
<http://jakarta.apache.org/tapestry/doc/ComponentReference/Body.html>">

<h1>Customer Login</h1>
Welcome to MyCorp's Customer Portal secure login page.
<p>
<span jwcid="@Insert
<http://jakarta.apache.org/tapestry/doc/ComponentReference/Insert.html>"
value="ognl:dailyMessage" class="ognl:messageClass"/>

</span>
</span>
</span>
</body>
</html>

Not as nice, since ideally you'd want to use as many coponents on the 
actual tags they represent, but at least it's correct.

Maybe for some people this is a complete non-issue, since of course 
almost any browser will not complain, but to me there's something wrong 
with using and endorsing illegal xhtml.

What do you think?



---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org



-------------------------------------------------------------
Sign up for ICQmail at http://www.icq.com/icqmail/signup.html