[
http://www.stripesframework.org/jira/browse/STS-751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12092#action_12092
]
Nikolaos commented on STS-751:
------------------------------
Iwao and Timothy,
I think we all agree that HTML 4 generates validation warnings and although
it's not the end of the world it is not ideal.
Moreover though... Iwao is correct in that there are no warnings for explicitly
closing tags using the current HTML5 validator (marked experimental mind you).
So what does this mean IMHO... well for one a mess... in permitting in HTML 5
both implicit and explicit closure of tags it boils down to developer
preference to what they want to use. Which from my perspective means that
Stripes "should" allow developers to choose between one over the other
regardless of "recommended" or not b/c both will be valid.
It also means this is no longer an HTML vs. XHTML thing and as such we should
not label it as such i.e. Timothy you would need to re-label your feature as a
flag of "HTML" won't cut it when HTML5 becomes mainstream.
So I still think Timothy's patch is valid for different reasons thanks to
Iwao's comments: because it boils down to developer preference for at least
the future w.r.t. HTML 5 albeit the feature needs to be labeled something
other than "HTML" and ideally something quite generic like an on/off switch of
sorts... .
--Nikolaos
> Add support ala Struts to generate HTML or XHTML compliant close tags
> ---------------------------------------------------------------------
>
> Key: STS-751
> URL: http://www.stripesframework.org/jira/browse/STS-751
> Project: Stripes
> Issue Type: Improvement
> Components: Tag Library
> Affects Versions: Release 1.5
> Environment: No specific OS required; no specific Java version
> required; etc...
> Reporter: Nikolaos
> Priority: Minor
> Fix For: Release 1.5.5
>
> Attachments: stripes-html-config.tgz, stripes-html4-input-0.1.jar,
> stripes-xhtml-patch.tar.gz, stripes-xhtml-patches.tar.gz,
> stripes_html_mode-1.5.5_1.patch
>
>
> HTML and XHTML documents have some key differences.
> For example - if we consider the <input> tag:
> - In HTML, the <input> tag has no end tag e.g. <input name="website.url"
> type="text" size="30">
> - In XHTML, the <input> tag must be properly closed, like this <input />
> e.g. <input name="website.url" type="text" size="30" />
> Stripes 1.5.x however does not have a mechanism to discern whether or not to
> properly close tags or not and as such takes the safer approach which is to
> explicitly close tags as it results in valid XHTML and is not an error for
> HTML but results in a warning when validating HTML documents. Although the
> latter is not a critical issue it does result in needless or unnecessary
> complaints when validating and as such is an annoyance albeit minor.
> Struts since 1.x has solved this issue quite easily by allowing the inclusion
> of the xhtml="true" attribute to mark that closure is required (false
> indicates no closure). In this manner authors of XHTML and HTML documents
> are equally satisfied in not having any errors or extraneous warnings.
> Timothy Stone had reported this issue and classified it as a bug here:
> http://www.stripesframework.org/jira/browse/STS-556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11931#action_11931
> The issue was rightly closed as "Not a bug" as most of the discussion was
> based on a non-w3c validator which yielded results that considered the
> validation unsuccessful which is not the case with the w3c validator (not to
> mention that it is irrelevant whether or not XHTML is considered dead or we
> should align to HTML 5 - etc...).
> As such this issue report is a re-statement of the above closed issue
> reported as an improvement and setting the stage for patch to be attached.
--
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
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Stripes-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-development