[ 
http://www.stripesframework.org/jira/browse/STS-556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11930#action_11930
 ] 

Ben Gunter commented on STS-556:
--------------------------------

I'll be honest. I really don't think this is a big deal. It seems rather 
nitpicky to me. But we discussed it on #stripes and we all agreed that it would 
not be a bad thing to have a tag, a la Struts, that turns on or off XHTML mode 
(and possibly other options in the future). If someone submits a patch that 
adds the tag to the tag library and alters the tags in question to honor the 
option then I'll apply the patch and release it with 1.5.4. I reserve the right 
to change the name of the tag or attribute or other aspects of the patch. I 
want to get 1.5.4 out in the next week or two so if you want it in there, you 
should act fast.

> Some stripes tags generate invalid html
> ---------------------------------------
>
>                 Key: STS-556
>                 URL: http://www.stripesframework.org/jira/browse/STS-556
>             Project: Stripes
>          Issue Type: Bug
>    Affects Versions: Release 1.5.1
>            Reporter: Dan Kaplan
>            Priority: Minor
>
> 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 message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://www.stripesframework.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------

_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to