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

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

I came to Stripes because it promised something that Struts and JSF did not... 
developers and engineers that understood that the View was as important as the 
Model and the Controller.

We should not be dismissing this as "not a bug," or "it's only a warning," or 
worse, "I heard on the internets." Let's get to the heart of the problem.

This is a configuration issue or enhancement to the tag library. On the gmane 
list, a great forum FAQ was cited, 
http://www.sitepoint.com/forums/showthread.php?t=393445, and I'll back that up 
with another great article on the argument of XHTML v. HTML from the engineers 
of WebKit, http://webkit.org/blog/68/understanding-html-xml-and-xhtml/

"...the vast majority of supposedly XHTML documents on the internet are served 
as text/html. Which means they are not XHTML at all, but actually invalid HTML 
that's getting by on the error handling of HTML parsers. All those 'Valid XHTML 
1.0!' links on the web are really saying 'Invalid HTML 4.01!'."

I see this as a problem that the default response to tags is rendering source 
that follows the W3C recommendations for *porting* your HTML to XHTML. This 
default response should be HTML. And an XHTML response should be configurable 
by implementer of the library or the view developer. 

> 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:
High Quality Requirements in a Collaborative Environment.
Download a free trial of Rational Requirements Composer Now!
http://p.sf.net/sfu/www-ibm-com
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development

Reply via email to