Modernizr/Modernizr — Issue #474: Feature detect non HTML5/CSS3 features
Author: Raynos
Created: 2012-01-25 10:20:47+00:00
State: open

Specifically things form DOM, expanding to DOM events, CSSOM, XHR2, WHATWG HTML, etc.

This would include say feature detection for `Node#contains` or `Node#textContent` and then loading the appropiate polyfill for those features.

I plan to build a set of shims using a "detect all features -> ask for shim containing just the missing features -> compile that shim on the fly on server -> send to client" strategy.

Since modernizr already does a good job of detecting features I can either make it a plugin/extension that sits on top of modernizr, add it to modernizr or re-invent the wheel manually.

If I were to add to modernizr directly I would imagine adding feature tests and then adding a seperate plugin/extension that uses yepnope and loads a single bundle for all the missing DOM related features.