-
-
Notifications
You must be signed in to change notification settings - Fork 553
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
XWIKI-21894: JSC_PARSE_ERROR in Tour.WebHome #2895
Conversation
The single quotes leads to error for example with tour extension: ``` xwiki:Tour.WebHome:17:78: ERROR - [JSC_PARSE_ERROR] Parse error. ',' expected 17| $('<a class="action actionLaunch"><span class="fa fa-play" aria-hidden='true'></span> Launch</a>') ^ 1 error(s), 0 warning(s) ```
@amottier Hi, thanks for the contribution, if it's a real bug could you open a ticket on jira.xwiki.org for it so that we can check for backporting it? |
Sure @surli I opened https://jira.xwiki.org/browse/XWIKI-21894 |
@surli don't hesitate to let me know if I need to do anything else to get the PR merged 🙂 |
It' okay for me too 👍 Cause PR: #2541 (review) I did forget to address the root inconsistency and I agree with these changes 👍 |
probably yes.
OK I'll wait for today's release to be done and then I'll merge it. |
Use double quotes for icon aria-hidden value The single quotes leads to error for example with tour extension: ``` xwiki:Tour.WebHome:17:78: ERROR - [JSC_PARSE_ERROR] Parse error. ',' expected 17| $('<a class="action actionLaunch"><span class="fa fa-play" aria-hidden='true'></span> Launch</a>') ^ 1 error(s), 0 warning(s) ``` (cherry picked from commit 3fe9ffe)
Use double quotes for icon aria-hidden value The single quotes leads to error for example with tour extension: ``` xwiki:Tour.WebHome:17:78: ERROR - [JSC_PARSE_ERROR] Parse error. ',' expected 17| $('<a class="action actionLaunch"><span class="fa fa-play" aria-hidden='true'></span> Launch</a>') ^ 1 error(s), 0 warning(s) ``` (cherry picked from commit 3fe9ffe)
Changes
## JIRA
https://jira.xwiki.org/browse/XWIKI-21894
Description
Use double quotes for
aria-hidden
attribute value. I.e.:aria-hidden="true"
.Clarifications
The single quotes leads to error for example with tour extension:
Executed Tests
./mvnw -e install -f xwiki-platform-core/xwiki-platform-icon/pom.xml