Title: What does navigation.js do except throw error?
Last modified: August 21, 2016

---

# What does navigation.js do except throw error?

 *  [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * (@ravanh)
 * [12 years, 3 months ago](https://wordpress.org/support/topic/what-does-navigationjs-do-except-throw-error/)
 * Hi,
 * Testing Gridster-Lite I get an error in console:
 *     ```
       Uncaught TypeError: Cannot call method 'getElementsByTagName' of null - navigation.js:8
       ```
   
 * Now fixing the file navigation.js with an extra ‘undefined’ check before using
   the ‘container’ variable would solve the error but… Since there are no divs with
   id=”site-navigation” in any theme template files, it does not look like the script
   actually serves any purpose.
 * Should it not be removed?
 * Thanks 🙂

The topic ‘What does navigation.js do except throw error?’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/gridster-lite/1.0.7.1/screenshot.
   png)
 * Gridster-Lite
 * [Support Threads](https://wordpress.org/support/theme/gridster-lite/)
 * [Active Topics](https://wordpress.org/support/theme/gridster-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/gridster-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/gridster-lite/reviews/)

 * 0 replies
 * 1 participant
 * Last reply from: [Rolf Allard van Hagen](https://wordpress.org/support/users/ravanh/)
 * Last activity: [12 years, 3 months ago](https://wordpress.org/support/topic/what-does-navigationjs-do-except-throw-error/)
 * Status: not resolved