[
http://www.stripesframework.org/jira/browse/STS-556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11929#action_11929
]
Nikolaos commented on STS-556:
------------------------------
Timothy,
On your points:
1) "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."
I have to disagree. Check this out:
http://www.greytower.net/archive/articles/xhtmlcontent.html
"Since the 1.0 version is designed to be compatible with HTML 4.01, a content
type of text/html MAY 1 be used to identify the content - but only if the
XHTML document is written according to the HTML Compatibility Guidelines.
For all other documents claiming to be XHTML 1.0, a content-type of
application/xhtml+xml MUST be used."
2) "Whether experimental or not, HTML5 IS being implemented. "Implementation
trumps Recommendation." [Holzschlag, 2010, Philly ETE, speaking on HTML5]."
Right... HTML5 implementation is not main stream nor is it accepted by all
browsers... where as HTML 4.01 and XHTML are... so isn't this really a counter
argument.
3) "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)."
Right... but I don't think its fear that drives anyone from being an early
adopter... its critical mass... once there is enough critical mass / adoption
for ANY technology it makes sense to run with it but until then unless I want
to build my home grown personal techie blog with it it doesn't make sense in
the main stream "for me" but YMMV.
4) "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. Allow me to also argue about the appeal of having
the feature when looking to win the "hearts and minds" of developers. You don't
want a web developer saying, "But Stripes doesn't provide a switch for HTML
syntax. Look over here...Struts provides the choice of output style as far back
as v1.1, e.g., <html:html xhtml="true">."
Once again on THIS Point I agree 100% and concur... it would be great if
Stripes could support this somehow... perhaps similar to Struts.
Also I imagine once integrated with a Stripes tag as an option this would be
EXTREMELY trivial to implement and can easily remain backwards compatible (i.e.
if the tag option is not explicitly present default to doing things as they are
done today).
What does everyone think?
> 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