Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

MAIN-19695: Fix slideshow custom IDs#17576

Merged
mszabo-wikia merged 1 commit into
Wikia:devfrom
puxlit:MAIN-19695-fix-slideshow-custom-ids
Nov 15, 2019
Merged

MAIN-19695: Fix slideshow custom IDs#17576
mszabo-wikia merged 1 commit into
Wikia:devfrom
puxlit:MAIN-19695-fix-slideshow-custom-ids

Conversation

@puxlit
Copy link
Copy Markdown
Contributor

@puxlit puxlit commented Nov 14, 2019

Links

Description

This change ensures that .wikia-slideshow gets the computed values for id (as well as data-hash and data-crop), instead of the (sanitized) tag attribute values set by the parser on mAttribs in the base class.

This is because, for Sanitizer::mergeAttributes, the second map overrides the first (bar special handling for classes).

Without this change, slideshow galleries for which editors specify custom IDs will not initialize properly, as .wikia-slideshow's ID will be missing its expected slideshow- prefix.

Reviewers

  • TBD

…e their tag attribute namesakes when preparing what to set for the slideshow's wrapper div
@mszabo-wikia mszabo-wikia merged commit d0edbca into Wikia:dev Nov 15, 2019
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.

2 participants