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

m.j.milicevic commented on STS-556:
-----------------------------------

W3C validator ( http://validator.w3.org/ ) says it's valid, with one warning:



This Page Is Valid HTML 4.01 Strict!

Result:         Passed validation, 1 warning(s)


Line 15, Column 47: NET-enabling start-tag requires SHORTTAG YES.

<input name="website.url" type="text" size="30"/>

✉

The sequence <FOO /> can be interpreted in at least two different ways, 
depending on the DOCTYPE of the document. For HMTL 4.01 Strict, the '/' 
terminates the tag <FOO (with an implied '>'). However, since many browsers 
don't interpret it this way, even in the presence of an HMTL 4.01 Strict 
DOCTYPE, it is best to avoid it completely in pure HTML documents and reserve 
its use solely for those written in XHTML.


> 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

       

-------------------------------------------------------------------------
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-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to