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

Timothy Stone commented on STS-556:
-----------------------------------

Nikolaos,

Well argued! My "patch" was binary (turning off the current behavior 
altogether) and did not present an option for configuration by the web 
developer. 

My foremost hope, and argument, is to get configuration in the Stripes tag 
library to choose the output style; It is the source of my, seemingly annual, 
re-visitation of this issue.

I surf a gray area in my position, but increasingly find myself in the waters 
of strict implementation of standards. While <input name="website.url" 
type="text" size="30"/> does indeed validate as XHTML 1.0 Strict, it is not. It 
is something in-between (much like the XHTML spec itself was a transitional 
notation toward XML). To be XHTML 1.0 Strict should also mean that the MIME 
type is correct, application/xhtml+xml. Most the validation in the wild ignore 
this point of the specification.

No question that WARNINGS annoy me. I suspect that `javac' warnings annoy 
engineers just the same... "Gotta get all those warnings out of my code.

There is no question that these warnings make me cringe. I have no choice in 
the matter and have to accept them, or custom spin my Stripes JAR to get rid of 
it.

HTML5 adoption is not a good position to take in arguing this issue, on that 
agree. However, I do believe that HTML5 is moving beyond early adoption, and at 
or past the "tipping point." Whether experimental or not, HTML5 IS being 
implemented. "Implementation trumps Recommendation." [Holzschlag, 2010, Philly 
ETE, speaking on HTML5].
HTML5 is in the wild and receiving A LOT of positive developer press (or 
depending on your business model, this could be a negative development).



> 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