Skip to content

Conversation

@co3k
Copy link

@co3k co3k commented Aug 12, 2015

The current implementation of head-script-disabled treats the following HTML as an error.

<title>...</title>
<p>...</p>
<script src="..."></script>

Because the check of head-script-disabled is removed when HTMLHint is encountered with the end tag of head even if the head start tag is not presented.

@yaniswang
Copy link
Contributor

Can you show me the w3c url about : head tag is optional in HTML5

@co3k
Copy link
Author

co3k commented Oct 6, 2015

Please read the followings:
http://www.w3.org/TR/html5/syntax.html#optional-tags

A head element's start tag may be omitted if the element is empty, or if the first thing inside the head element is an element.
A head element's end tag may be omitted if the head element is not immediately followed by a space character or a comment.

@yaniswang
Copy link
Contributor

fixed: 96abbe2

@yaniswang yaniswang closed this Oct 7, 2015
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.

2 participants