Changes between Initial Version and Version 5 of Ticket #22307
- Timestamp:
- 10/29/12 18:51:41 (7 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #22307
- Property Keywords needs-patch added
- Property Summary changed from Javascript error in 2012 theme if not using nav to Twenty Twelve: JavaScript error if not removed navigation wrapper markup
- Property Component changed from Themes to Bundled Theme
- Property Milestone changed from Awaiting Review to 3.5
-
Ticket #22307 – Description
initial v5 1 I'm getting this error on a page that isn't using the header or nav. 1 I'm getting this error on a page that isn't using the header or nav. [Edit by lancewillett: This only occurs when the entire nav markup is removed.] 2 2 3 {{{ 3 4 Error: TypeError: document.getElementById("site-navigation") is null 4 5 Source File: /wp-content/themes/twentytwelve/js/navigation.js?ver=1.0 5 6 Line: 7 7 }}} 6 8 7 9 Can a check be added into the Twenty Twelve theme to make sure #site-navigation exists on the page?
