This is an attempt to make a HTML boilerplate that simplifies progressive enhancement.
It operate under the assumption that their are two types of browsers:
- those that support HTML5
- those that don't
By HTML5, I'm not just talking about markup - I'm using the more nebulous definition that includes many JavaScript APIs and CSS selectors associated with modern web applications.
A breif script in the head judges if the browser is worthy. This is based on detection of two modern DOM API's: one for selecting elements, and one for attaching events.