Browse files

The order of <meta> tags, <title>, and charset has been documented mo…

…re extensively now: 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="" 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.
  • Loading branch information...
1 parent 3c07677 commit 4b67ea5cabb8c2b75faf2e255344cdffdf190464 @paulirish committed Jan 12, 2011
Showing with 0 additions and 6 deletions.
  1. +0 −6 index.html
6 index.html
@@ -12,12 +12,6 @@
Remove this if you use the .htaccess -->
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
- <!-- encoding must be specified within the first 512 bytes -->
- <!-- meta element for compatibility mode needs to be before all elements except title & meta -->
- <!-- Chrome Frame is only invoked if meta element for compatibility mode is within the first 1K bytes -->
<meta name="description" content="">
<meta name="author" content="">

0 comments on commit 4b67ea5

Please sign in to comment.