I am currently experimenting with this code: http://jsfiddle.net/sbrsK/10/
It runs flawlessly on jsfiddle without any errors.
However, attempting to run the same code via a local web server on my computer proves unsuccessful. The following files are being loaded:
- index.html
- app.js
When using Firefox, I encounter this error:
TypeError: this._input is null @ http://cloud.github.com/downloads/wycats/handlebars.js/handlebars-1.0.0.beta.6.js:364
On Chrome, I receive this error message:
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
A similar issue was previously discussed in this link, but it appears unresolved.
So, why does this error occur when everything functions correctly in jsfiddle? What is the proper method for running this code locally?