sstephenson / eco

Embedded CoffeeScript templates
MIT License
1.71k stars 70 forks source link

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

Open pushred opened 13 years ago

pushred commented 13 years ago

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?