relevance / blue-ridge

Framework for JavaScript Testing (currently a Rails Plugin)
http://groups.google.com/group/blueridgejs
MIT License
480 stars 40 forks source link

Cannot call method appendChild of null - jQuery 1.3.2 error #18

Closed drogus closed 15 years ago

drogus commented 15 years ago

here is backtrace:

 ERROR: [Mon Jul 27 2009 10:39:50 GMT+0200 (CEST)] {ENVJS} Fatal Error: Element: must be nested correctly
Line: 9
Column: 8
 Line: (line ?)
 ERROR: [Mon Jul 27 2009 10:39:50 GMT+0200 (CEST)] {ENVJS}
 ERROR: [Mon Jul 27 2009 10:39:50 GMT+0200 (CEST)] {ENVJS} [object Object] Line: (line ?)
 ERROR: [Mon Jul 27 2009 10:39:50 GMT+0200 (CEST)] {ENVJS}
Running location_spec.js with fixture 'fixtures/location.html'...
js: "/home/drogus/projekty/gastronauci/vendor/plugins/blue-ridge/lib/jquery-1.3.2.js", line 3204: uncaught JavaScript runtime exception: TypeError: Cannot call method "appendChild" of null
        at /home/drogus/projekty/gastronauci/vendor/plugins/blue-ridge/lib/jquery-1.3.2.js:3204
        at /home/drogus/projekty/gastronauci/vendor/plugins/blue-ridge/lib/jquery-1.3.2.js:3032
        at /home/drogus/projekty/gastronauci/vendor/plugins/blue-ridge/lib/jquery-1.3.2.js:691
        at /home/drogus/projekty/gastronauci/vendor/plugins/blue-ridge/lib/jquery-1.3.2.js:3031
        at /home/drogus/projekty/gastronauci/vendor/plugins/blue-ridge/lib/jquery-1.3.2.js:2693
        at /home/drogus/projekty/gastronauci/vendor/plugins/blue-ridge/lib/jquery-1.3.2.js:2467
        at /home/drogus/projekty/gastronauci/vendor/plugins/blue-ridge/lib/jquery-1.3.2.js:2641
        at /home/drogus/projekty/gastronauci/vendor/plugins/blue-ridge/lib/jquery-1.3.2.js:2919
        at /home/drogus/projekty/gastronauci/vendor/plugins/blue-ridge/lib/jquery-1.3.2.js:691
        at /home/drogus/projekty/gastronauci/vendor/plugins/blue-ridge/lib/jquery-1.3.2.js:155
        at /home/drogus/projekty/gastronauci/vendor/plugins/blue-ridge/lib/jquery-1.3.2.js:2918
        at /home/drogus/projekty/gastronauci/vendor/plugins/blue-ridge/lib/test_runner.js:54
karnowski commented 15 years ago

Usually when I see the "element must be nested correctly" it's due to me creating HTML dynamically with jQuery, but that I'm missing a closing tag or an ending / somewhere. Without a code sample, though, I can't be much help. Closing this ticket.