struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Evans (JIRA)" <j...@apache.org>
Subject [jira] Reopened: (STR-2269) <html:form> tag renders incorrect HTML 4.01 strict when using token
Date Mon, 24 Apr 2006 18:43:09 GMT
     [ http://issues.apache.org/struts/browse/STR-2269?page=all ]
     
David Evans reopened STR-2269:
------------------------------

    Assign To: David Evans  (was: Struts Developer Mailing List)

> <html:form> tag renders incorrect HTML 4.01 strict when using token
> -------------------------------------------------------------------
>
>          Key: STR-2269
>          URL: http://issues.apache.org/struts/browse/STR-2269
>      Project: Struts Action 1
>         Type: Bug

>   Components: Taglibs
>     Versions: 1.2.4
>  Environment: Operating System: All
> Platform: All
>     Reporter: Brian Preuß
>     Assignee: David Evans
>     Priority: Minor
>      Fix For: 1.2 Family

>
> When you are using the <html:form> tag with the transaction token, the tag
> renders the following html:
> <form name="myFormBean" method="post" action="myAction.do"><input type="hidden"
> name="org.apache.struts.taglib.html.TOKEN" value="d8fb5d4dbc6d379f9dc65d25d55d337e">
> <!-- some other stuff -->
> </form>
> When you validate such a html code against the strict doctype as in
> <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
> "http://www.w3.org/TR/html4/strict.dtd">
> you will get an error:
> Error: element INPUT not allowed here; possible cause is an inline element
> containing a block-level element
> A possible solution could be to add another attribute for the form tag like
> "strict" with values true|false which would trigger the generation of a dummy
> div-block just like
> <form ...><div><input type="hidden"...>...</div></form>
> This html would validate against the strict doctype.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@struts.apache.org
For additional commands, e-mail: dev-help@struts.apache.org


Mime
View raw message