Skip to content
This repository has been archived by the owner on Sep 16, 2019. It is now read-only.

Remove search query from current breadcrumb class #995

Merged
merged 1 commit into from May 31, 2017
Merged

Remove search query from current breadcrumb class #995

merged 1 commit into from May 31, 2017

Conversation

conorbarclay
Copy link
Contributor

@conorbarclay conorbarclay commented May 31, 2017

Using the raw search terms as a class, despite being escaped, is a bad idea. Depending on which search terms are being used (and, more importantly, if there are spaces in the search query), these may potentially include existing CSS class keywords which can cause style/layout issues on the page.

i.e, a search for "small blue product" -> <li class="current item-current-small blue product">, which is not good.

Using the raw search terms as a class, despite being escaped, is a bad idea. Depending on which search terms are being used, these may potentially include existing class keywords which can cause style/layout issues on the page.
@olefredrik olefredrik merged commit f9bfdb4 into olefredrik:master May 31, 2017
@conorbarclay conorbarclay deleted the patch-1 branch May 31, 2017 18:23
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants