You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@click.apache.org by "Malcolm Edgar (JIRA)" <ji...@apache.org> on 2009/04/07 11:59:12 UTC

[jira] Commented: (CLK-520) Button should be rendered as "button"

    [ https://issues.apache.org/jira/browse/CLK-520?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696458#action_12696458 ] 

Malcolm Edgar commented on CLK-520:
-----------------------------------

The input type="button" actually predates the button element which is by Click uses it in preference to it (it is/was more widely used).

http://particletree.com/features/rediscovering-the-button-element/

I don't think this is a bug, however the button is a richer control which deserves more support.  This could be handled by introducing a rendering option, where people could specify the way it should be rendered and include img content support.

regards Malcolm Edgar

> Button should be rendered as "button"
> -------------------------------------
>
>                 Key: CLK-520
>                 URL: https://issues.apache.org/jira/browse/CLK-520
>             Project: Click
>          Issue Type: Bug
>            Reporter: Joseph Schmidt
>
> Button controls should be rendered as "button" HTML elements not as "input".
> The actual implementation seems to use "input" of type "button" but that is quite misleading since with
> that type of tag, it's not possible to embed icons or span tags or something else(the "button" tag would normally allow) in the button to make it look better or what the requirements ask.
> The "input" element seems to have only a "value" attribute.
> E.g. adding an icon before the button text (in the button body) it's a very common requirement (so I think it should work as default).
> Button tag also has "type" (e.g. of 'submit', 'cancel' , 'button'), so derived controls of class Button would behave as before.
> thanks,
> Joseph.

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