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

Fix for issue #1, <meta> being before doctype #4

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Fix for issue #1, <meta> being before doctype #4

wants to merge 1 commit into from

Conversation

elderfo
Copy link

@elderfo elderfo commented Dec 6, 2016

Fix for issue #1, #2. Generates the following HTML:

With DOCTYPE & head:

<!DOCTYPE html>
<html>
<head>
<!--
Created using JS Bin
http://localhost:3000

Copyright (c) 2016 by anonymous (http://localhost:3000/duc/1/edit)

Released under the MIT license: http://jsbin.mit-license.org
-->
<meta name="robots" content="noindex">
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width">
  <title>JS Bin</title>
</head>
<body>
  <Div>stuff</div>
</body>
</html>

With DOCTYPE and no head (note: the meta tag is stripped):

<!DOCTYPE html>
<!--
Created using JS Bin
http://localhost:3000

Copyright (c) 2016 by anonymous (http://localhost:3000/duc/1/edit)

Released under the MIT license: http://jsbin.mit-license.org
-->
<html>
<body>
  <Div>stuff</div>
</body>
</html>

With no DOCTYPE and no head (note: the meta tag is also stripped):

<!--
Created using JS Bin
http://localhost:3000

Copyright (c) 2016 by anonymous (http://localhost:3000/duc/1/edit)

Released under the MIT license: http://jsbin.mit-license.org
-->
<html>
<body>
  <Div>stuff</div>
</body>
</html>

@remy, I intentionally did not worry about indenting here, I can add that if you would like.

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

Successfully merging this pull request may close these issues.

1 participant