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

usemin not handling self-closing HTML tags correctly #610

Open
agaace opened this issue Dec 14, 2015 · 1 comment
Open

usemin not handling self-closing HTML tags correctly #610

agaace opened this issue Dec 14, 2015 · 1 comment
Labels

Comments

@agaace
Copy link

agaace commented Dec 14, 2015

I am unable to successfully use self closing tags <div /> in HTML, because output HTML is corrupted. If I use <div></div> instead, all works fine.

Example:

This correct syntax:

<div class="cy-toggle-root">
<div class="toggle">
<div class="bar" />
<div class="button" />
</div>
<div ng-transclude class="content" />
</div>

Incorrectly becomes:

<div class="cy-toggle-root">
<div class="toggle">
<div class="bar" />
<div class="button" />
<div ng-transclude class="content" />
</div>
</div>

IF I change it to avoid self closing tags:

<div class="cy-toggle-root">
<div class="toggle">
<div class="bar"></div>
<div class="button"></div>
</div>
<div ng-transclude class="content"></div>
</div>

It works correctly

@nodox nodox added the bug label Apr 7, 2016
@karensg
Copy link

karensg commented Apr 8, 2016

<div> is not a HTML 5 void element and therefore can not be used as <div />

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

No branches or pull requests

3 participants