Block level elements should be able to render inside anchor tags #1134

Closed
ramblinjan opened this Issue Jun 30, 2014 · 2 comments

Comments

Projects
None yet
3 participants
@ramblinjan
Contributor

ramblinjan commented Jun 30, 2014

Can not currently render a block-level element inside an <a> tag since it is an inline element.

HTML5 spec allows putting block-level elements inside anchors. HTML 4.01 allows block elements inside anchor tags, though it requires additional CSS to make sure it behaves properly--rendering this way prevents the CSS workaround.

Template:

<a href="#">
<h1>Foo</h1>
</a>

Result:

<a href="#"></a>
<h1>Foo</h1>

Example Here:
http://jsfiddle.net/dcgSY/6/

@ccummings

This comment has been minimized.

Show comment
Hide comment
@ccummings

ccummings Dec 19, 2014

Contributor

Can we get this into the 2.2 release?

Contributor

ccummings commented Dec 19, 2014

Can we get this into the 2.2 release?

@daffl

This comment has been minimized.

Show comment
Hide comment
@daffl

daffl Feb 10, 2015

Contributor

@ccummings Done. This is needed in several projects and a must if you want to use Bootstrap markup.

Contributor

daffl commented Feb 10, 2015

@ccummings Done. This is needed in several projects and a must if you want to use Bootstrap markup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment