Hi guys, I'm using the HTML 5 boilerplate and trying to follow some instructions from a text book but nothing is drawn. Firebug says "document.getElementById is not a function" but it is! Confused. Any help appreciated. Thanks!
<!doctype html><!--[if lt IE 7]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="en"> <![endif]--><!--[if IE 7]> <html class="no-js lt-ie9 lt-ie8" lang="en"> <![endif]--><!--[if IE 8]> <html class="no-js lt-ie9" lang="en"> <![endif]--><!--[if gt IE 8]><!--> <html class="no-js" lang="en"> <!--<![endif]--><head> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> <title></title> <meta name="description" content=""> <meta name="viewport" content="width=device-width"> <link rel="stylesheet" href="HTML5 boilerplate v3/Stripped/h5bp-html5-boilerplate-v3.0.2stripped-0-g5f341a3/h5bp-html5-boilerplate-359a13f/css/style.css"> <script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script> <script>window.jQuery || document.write('<script src="js/libs/jquery-1.7.1.min.js"><\/script>')</script> <script src="HTML5 boilerplate v3/Stripped/h5bp-html5-boilerplate-v3.0.2stripped-0-g5f341a3/h5bp-html5-boilerplate-359a13f/js/plugins.js"></script> <script src="HTML5 boilerplate v3/Stripped/h5bp-html5-boilerplate-v3.0.2stripped-0-g5f341a3/h5bp-html5-boilerplate-359a13f/js/script.js"></script> <script src="HTML5 boilerplate v3/Stripped/h5bp-html5-boilerplate-v3.0.2stripped-0-g5f341a3/h5bp-html5-boilerplate-359a13f/js/libs/modernizr-2.5.3.min.js"></script></head><body> <!--[if lt IE 7]><p class=chromeframe>Your browser is <em>ancient!</em> <a href="http://browsehappy.com/">Upgrade to a different browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">install Google Chrome Frame</a> to experience this site.</p><![endif]--> <header><h1>Canvas Test</h1> </header> <div role="main"><canvas id="logo" width="900" height="80"> <h1>AwesomeCo</h1> </canvas> <script type="text/javascript">var drawLogo = function(){var canvas = document.getElementById("logo");var context = canvas.getContext("2d");context.font = 'italic 40px sans-serif';context.textBaselibe ='top';content.fillText("AwesomeCo", 60, 0);};$(document).ready(function(){ var canvas = document.getElementByID("logo"); if (canvas.getContext){ drawLogo(); }});</script> </div> <footer> </footer></body></html>