I would prefer something that I can use from JavaScript only and to be easy to use for someone with little JS knowledge. I did find 2 libs that is
Read Detecting HTML5 Features for a conceptual introduction. Want an all-in-one library instead? createElement('canvas'); return c.getContext && typeof c. JavaScript libraries: Modernizr, an HTML5
Ett enkelt exempel med library.js Så här ser kan koden se ut i utgåva ett av vår bok. litetspel.html