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

html tags are autoclosed within a single html file #73

Open
kmturley opened this issue Dec 10, 2015 · 2 comments
Open

html tags are autoclosed within a single html file #73

kmturley opened this issue Dec 10, 2015 · 2 comments

Comments

@kmturley
Copy link

If I have an html file it will correctly auto close attributes

<body>

becomes:

<body></body>

However I want to have a header include such as:

includes/header.html:

<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8" />
    <title>Page title</title>
    <meta name="viewport" content="width=device-width,initial-scale=1" />
</head>
<body>

includes/footer.html

</body>
</html>

But this is outputted as:

<html lang=en><head><meta charset=utf-8><title>Page title</title><meta name=viewport content="width=device-width,initial-scale=1"></head><body></body></html>

And it's auto closing the body/html tags. Can we add an option to override this behavior?

@Swaagie
Copy link
Owner

Swaagie commented Dec 18, 2015

I can add an option for this, as with HTML5 not closing body/html is allowed, hopefully I can spend some time on it during the weekend.

@kmturley
Copy link
Author

awesome, this would be really useful for my project :)

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

No branches or pull requests

2 participants