So, here's my question. Is there a way for Stripes to know the DOCTYPE you are using without having you re-state it in some stripes specific tag? I ask because of the two valid alternatives you give at least one is invalid XHTML. I'm not completely up on this but aren't there cases where you just cannot generate HTML that is valid HTML 4.0 and valid XHTML at the same time?

-t

On Apr 30, 2008, at 2:01 AM, Dan Kaplan wrote:

I already created a JIRA issue for this. I’m not sure if it’s bad form to also post an email. Here’s the JIRA issue URL:http://www.stripesframework.org/jira/browse/STS-556


Hello, If I use an input tag like this:
<stripes:text name="website.url" size="30"></stripes:text>

It’ll generate some html like this:
<input name="website.url" type="text" size="30" />

But, if your html is using a doctype like this:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd ">

That form is actually invalid. It should instead generate HTML like this:
<input name="website.url" type="text" size="30">
Or this:
<input name="website.url" type="text" size="30" ></input>

Here is a validator that you can test this with:  http://validator.nu

Paste this html into it to see for yourself:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd ">
<html>
<head><title>title</title></head>
<body>

<form action=”na”>
<div>
<input name="website.url" type="text" size="30"/>
</div>
</form>

</body>
</html>


This HTML will validate after you remove the trailing / on the input tag.

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to