Skip to content

Commit 4b67ea5

Browse files
committed
The order of <meta> tags, <title>, and charset has been documented more extensively now:
https://github.com/paulirish/html5-boilerplate/wiki/The-markup see The order of charset, meta tags, and <title>... Because the boilerplate markup enforces the document structure, we can intentionally place the charset above the title (and other content) and avoid the XSS issues that caused the HTML5 spec to specify that "charset must be in the first 512 bytes". So even if you throw the xmlns:fb="http://www.facebook.com/2008/fbml" bullshit into ALL the html tags, and the validator says your document is now invalid because charset is after the first 512 bytes, we'll.. it's okay. You're still safe. And so are the kittens.
1 parent 3c07677 commit 4b67ea5

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

index.html

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@
1212
Remove this if you use the .htaccess -->
1313
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
1414

15-
<!-- encoding must be specified within the first 512 bytes www.whatwg.org/specs/web-apps/current-work/multipage/semantics.html#charset -->
16-
17-
<!-- meta element for compatibility mode needs to be before all elements except title & meta msdn.microsoft.com/en-us/library/cc288325(VS.85).aspx -->
18-
<!-- Chrome Frame is only invoked if meta element for compatibility mode is within the first 1K bytes code.google.com/p/chromium/issues/detail?id=23003 -->
19-
20-
2115
<title></title>
2216
<meta name="description" content="">
2317
<meta name="author" content="">

0 commit comments

Comments
 (0)