From ca72bd5455ac81f39c0b01a42e8764af53d02c67 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Mon, 7 Sep 2015 09:48:32 +0200 Subject: [PATCH] NavigationRendererInterface: Use "div" as default outer element tag "nav" is less often necessary. refs #5600 --- application/views/scripts/layout/menu.phtml | 2 +- .../Web/Navigation/Renderer/NavigationRendererInterface.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/application/views/scripts/layout/menu.phtml b/application/views/scripts/layout/menu.phtml index 16520c4a3..36b7cbbdb 100644 --- a/application/views/scripts/layout/menu.phtml +++ b/application/views/scripts/layout/menu.phtml @@ -13,4 +13,4 @@ if ($searchDashboard->search('dummy')->getPane('search')->hasDashlets()): ?> /> -setHeading(t('Navigation')); ?> \ No newline at end of file +setHeading(t('Navigation'))->setElementTag('nav'); ?> \ No newline at end of file diff --git a/library/Icinga/Web/Navigation/Renderer/NavigationRendererInterface.php b/library/Icinga/Web/Navigation/Renderer/NavigationRendererInterface.php index d9306e29e..4e8ce6414 100644 --- a/library/Icinga/Web/Navigation/Renderer/NavigationRendererInterface.php +++ b/library/Icinga/Web/Navigation/Renderer/NavigationRendererInterface.php @@ -60,7 +60,7 @@ interface NavigationRendererInterface * * @var string */ - const OUTER_ELEMENT_TAG = 'nav'; + const OUTER_ELEMENT_TAG = 'div'; /** * The heading's rank