tapestry-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Francois Armand (JIRA)" <...@tapestry.apache.org>
Subject [jira] Commented: (TAPESTRY-2699) Select component does not generate valid select with closing </option>
Date Thu, 02 Oct 2008 07:31:44 GMT

    [ https://issues.apache.org/jira/browse/TAPESTRY-2699?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12636297#action_12636297

Francois Armand commented on TAPESTRY-2699:

That's something that has been dealt with several time in the ml, see for example : http://markmail.org/search/?q=list%3Aorg.apache.tapestry.users+Tapestry+5+-+doesn%27t+generate+valid+XHTML#query:list%3Aorg.apache.tapestry.users%20Tapestry%205%20-%20doesn%27t%20generate%20valid%20XHTML+page:1+mid:e7s6luenjtiap6ef+state:results

Summary : the HTML compliance of generated markup depends on both your pages doctype and their
content type. 

So, to have valid XHTML (not closing the option tag is valid HTML 4), you have to add the
XHTML doctype and set the content type to "application/xhtml+xml". 

BUT. There is a bug in IE, well known by IE dev (who doesn't really care to correct it - it's
still in IE 7), that make this browser don't understand this content-type.

So, you may want to look to this how-to, which bring a solution (T5 is so extendable that
there is always a simple solution :) : http://wiki.apache.org/tapestry/Tapestry5HowToXhtml


To T5 developers : as this error come again and again, and as the huge majority of us want
to produce valid XHTML (understandable by IE) by default, it would be great to find a solution,
even if the real problem is an IE  bug.

> Select component does not generate valid select with closing </option>
> ----------------------------------------------------------------------
>                 Key: TAPESTRY-2699
>                 URL: https://issues.apache.org/jira/browse/TAPESTRY-2699
>             Project: Tapestry
>          Issue Type: Bug
>          Components: Core Components
>    Affects Versions: 5.0.15
>         Environment: Blackberry browser
>            Reporter: Finn Kennedy
> Select component when rendering does not output a closing </option> which mean
for the Blackberry and other mobile browsers that the select is interpreted as a single option
in the drop down.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

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

View raw message