Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

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

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

ramblinjan opened this issue Jun 30, 2014 · 2 comments
Labels
Milestone

Comments

@ramblinjan
Copy link
Contributor

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
Copy link
Contributor

Can we get this into the 2.2 release?

@daffl
Copy link
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
Labels
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants