Why is browser returning error “TypeError: this._input is null” in Firefox (and similar in Chrome) when using handlebars.js?
This is the code I am trying out: http://jsfiddle.net/sbrsK/10/ It runs correctly without any error in jsfiddle Trying to run the same via a web-server locally on my computer does not work. The following files are being loaded: index.html app.js In Firefox I get this error: TypeError: this._input is null @ http://cloud.github.com/downloads/wycats/handlebars.js/handlebars-1.0.0.beta.6.js:364 In chrome I get this error: Uncaught TypeError:Cannot call method 'match' of null under match = this._input.match(this.rules[rules[i]]); in handlebars-1.0.0.beta.6.js There is a very similar problem raised