dojo html templates and comments

Don’t you just love obscure error messages?

rootNode.getElementsByTagName is not a function http://localhost:8080/js/dojo/dojo/geomajas-dojo.js.uncompressed.js
Line 4674 

After a couple of hours of debugging, checking all the differences etc, I figured out why the dojo application was no longer working.

I has assured all files have the corret copyright statement.
However, when dojo parses component templates, it seems to require a document with one root. So incluind the copyright at the top breaks everything. Oops.

109 Comments

  1. eugen says:

    Hi Joachim,
    thanks a lot for this post!

Leave a Reply

Your email address will not be published. Required fields are marked *

question razz sad evil exclaim smile redface biggrin surprised eek confused cool lol mad twisted rolleyes wink idea arrow neutral cry mrgreen

*