Skip to content

Loading…

Clean up the markup #9

Open
wants to merge 1 commit into from

1 participant

@mathiasbynens

I’ve mostly applied the things described here: http://mathiasbynens.be/notes/html5-levels

  • Removed useless XML prologs from HTML files
  • Switched to the <!DOCTYPE html> doctype
  • Switched to <meta charset="utf-8"> (instead of <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />) and moved it to the top of the <head>:

    As recommended by the HTML5 spec (4.2.5.5 Specifying the document's character encoding), add your charset declaration early (before any ASCII art ;) to avoid a potential encoding-related security issue in IE. It should come in the first 1024 bytes.

    The charset should also come before the <title> tag, due to potential XSS vectors.

  • Removed type="text/javascript" from <script> elements

  • Removed type="text/css" from <style> and <link rel=stylesheet> elements
  • Removed unneeded explicit references to /favicon.ico (http://mathiasbynens.be/notes/rel-shortcut-icon)

View diff here: https://github.com/rubys/feedvalidator/pull/9/files?w=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on May 8, 2013
  1. @mathiasbynens

    Clean up the markup

    mathiasbynens committed
Something went wrong with that request. Please try again.