Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

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

…re 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.
  • Loading branch information...
commit 4b67ea5cabb8c2b75faf2e255344cdffdf190464 1 parent 3c07677
Paul Irish authored January 12, 2011

Showing 1 changed file with 0 additions and 6 deletions. Show diff stats Hide diff stats

  1. 6  index.html
6  index.html
@@ -12,12 +12,6 @@
12 12
        Remove this if you use the .htaccess -->
13 13
   <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
14 14
 
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  
-
21 15
   <title></title>
22 16
   <meta name="description" content="">
23 17
   <meta name="author" content="">

0 notes on commit 4b67ea5

Please sign in to comment.
Something went wrong with that request. Please try again.