[
http://www.stripesframework.org/jira/browse/STS-556?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=11925#action_11925
]
Timothy Stone commented on STS-556:
-----------------------------------
Let's consider reopening this...
I'll address Frederic's Oct '08 comment in a moment.
First, XHTML is a dead spec. The W3C ended recommendation work in June 2009.
This move by the W3C validates the reporter, my comment and the work of WHATWG,
WebKit, and many others. It's time for Stripes to drop the XHTML notation
rendered by default in empty elements, e.g., input and img.
HTML 5 is the emerging standard. Molly Holzschlag, not just any "Molly," says
it best, "implementation trumps recommendation." So, while HTML5 is not a
recommended spec, it's clobbering XHTML and is in wide use and advocation.
HTML5 is center stage in the Apple v. Adobe "debate" (with MSFT recently citing
HTML5 as the basis for IE9, a subtle thumbs up for Apple without alienating
Adobe, and more importantly IE9 bloggers are using HTML5 in active
communication with developers).
I stand by my argument that "... the default response should be HTML [4.01
Strict]. And an XHTML response should be configurable by implementer of the
library or the view developer."
Please fix the HtmlTagSupport method writeSingletonTag implementation. I've
even provide a diff below.
Maybe you don't want break the current implementation? Then consider allowing a
configuration in the DD for XHTML v. HTML 4/5, so that I, and others, can get
on with the work of building modern web pages that are not shackled to a dead
specification.
tst...@jagdtiger [~] % diff -u
~/Downloads/stripes-1.5.3/stripes/src/net/sourceforge/stripes/tag/HtmlTagSupport.java
/tmp/HtmlTagSupport.java
---
/Users/tstone/Downloads/stripes-1.5.3/stripes/src/net/sourceforge/stripes/tag/HtmlTagSupport.java
2009-12-16 08:46:54.000000000 -0500
+++ /tmp/HtmlTagSupport.java 2010-05-25 10:47:04.000000000 -0400
@@ -175,7 +175,7 @@
writer.print("<");
writer.print(tag);
writeAttributes(writer);
- writer.print(" />");
+ writer.print(">");
}
catch (IOException ioe) {
JspException jspe = new JspException("IOException encountered
while writing singleton tag <" +
tst...@jagdtiger [~] %
Regarding the comment by Frederic, "Using <input/> just gives you a warning for
the HTML DOCTYPE mentioned, but <input> would break XML-based DOCTYPES."
What XML-based DOCTYPES specifically? XHTML 1.0? XHTML 1.1? As noted, the W3C
dropped them. And to make the case stronger for Stripes to fix this, or provide
a configuration, as currently implemented by almost all XHTML advocates, XHTML
is not correct. It is delivered the vast majority as "text/html" (which makes
it just "invalid HTML 4.01") not the XHTML required "application/xhtml+xml".
Serving XHTML correctly breaks web page in most widely distributed MSIE
browsers, cause a download event, not a render event.
> 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