Autonav Blank Classes
Permalink
Why does the Autonav get a weird class markup on the <li> and <a> if they have no classes?
If no classes, the markup becomes <li class>, without quotes. Why is this happening?
If no classes, the markup becomes <li class>, without quotes. Why is this happening?
Hi MrKDilkington,
http://dev.gbnt.pt/c5-test/
here's a link of a fresh install, with nothing but a default autonav on the homepage.
Links 1 and 2 have no class, so they're rendering it as
I'm using the latest (5.6.3.3)
http://dev.gbnt.pt/c5-test/
here's a link of a fresh install, with nothing but a default autonav on the homepage.
Links 1 and 2 have no class, so they're rendering it as
<a class></a>
I'm using the latest (5.6.3.3)
It seems to only happen in Safari and Chrome. Doesn't happen on Firefox.
I'm on OS X Yosemite, I can't test on a windows machine right now.
I'm on OS X Yosemite, I can't test on a windows machine right now.
It is because in the autonav generation we have
Since there is nothing in $ni->classes, nothing is output for the class attributes.
Safari and Chrome just display empty attributes in the developer inspector without the "", whereas Firefox doesn't.
If you view the page source (instead of inspecting through the developer tools) you will see the actual output is <li class="">.
Basically, its nothing to worry about.
Since there is nothing in $ni->classes, nothing is output for the class attributes.
Safari and Chrome just display empty attributes in the developer inspector without the "", whereas Firefox doesn't.
If you view the page source (instead of inspecting through the developer tools) you will see the actual output is <li class="">.
Basically, its nothing to worry about.
What version of concrete5 are you using?
Do you have a link to a website where this is happening?