Skip to content
This repository has been archived by the owner on Jun 10, 2018. It is now read-only.

formaction attribute doesn't work when applied to a button with children #32

Open
pushred opened this issue Oct 7, 2011 · 0 comments
Open

Comments

@pushred
Copy link

pushred commented Oct 7, 2011

I think I've run into an issue with Eco and the new HTML formaction attribute when applied to button elements. This attribute overrides the closest parent form's own action whenever specified in supported browsers. But if my button happens to contain another element (<strong> in my case), the attribute no longer has an effect in Chrome 14 or Safari 5.1 when rendered from an Eco template. If I remove the <strong> it works. Firefox 6 works either way.

<strong> is supported "phrasing content" and the button works properly outside of the Eco template. So maybe it's something to do with the WebKit DOM implementation?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant