[MAGNOLIA-594] cmsu:simpleNavigation Tag Creates Invalid CSS selectors Created: 05/Nov/05  Updated: 05/Nov/05  Resolved: 05/Nov/05

Status: Closed
Project: Magnolia
Component/s: taglibs
Affects Version/s: 2.1.3
Fix Version/s: 2.0 Final

Type: Improvement Priority: Minor
Reporter: Andreas Assignee: Fabrizio Giustina
Resolution: Won't Fix Votes: 0
Labels: None
Remaining Estimate: 5m
Time Spent: Not Specified
Original Estimate: 5m

Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 Description   

CSS selectors like <li class="open trail"> or <li class="active leaf"> are not valid. There must not be any spaces in the selectorname.

To fix this I removed sourcecode lines #348 - #350 in my local copy of SimpleNavigationTag.java
/*
if (iterator.hasNext())

{ css.append(" "); //$NON-NLS-1$ }

*/



 Comments   
Comment by Fabrizio Giustina [ 05/Nov/05 ]

the class attribute accepts multiple values: class="one two" means that you can use:

.one

{ ... }

.two

{ ... }

or also:
.one.two

{ ... }
Generated at Mon Feb 12 03:18:59 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.