Skip to content
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

Let makeSections xpath query cope with multiple classes #733

Merged
merged 3 commits into from
Nov 15, 2023

Conversation

kemayo
Copy link
Contributor

@kemayo kemayo commented Nov 6, 2023

As-of https://gerrit.wikimedia.org/r/c/mediawiki/core/+/939783 in mediawiki-core, this class attribute is going to contain multiple classes. This would break the section-creation. This change to the query is backwards-compatible, so this should just inoculate the skin against future updates.

As-of https://gerrit.wikimedia.org/r/c/mediawiki/core/+/939783 in mediawiki-core, this class attribute is going to contain multiple classes. This would break the section-creation. This change to the query is backwards-compatible, so this should just inoculate the skin against future updates.
@alistair3149
Copy link
Member

Thank you so much for the PR and also the notification of the core change! I'll test it locally next week and merge it afterwards :)

@kemayo
Copy link
Contributor Author

kemayo commented Nov 7, 2023

Sounds good! Let me know if anything needs to be adjusted -- all I really did here is port over the fix for MobileFrontend, so I didn't do any deep exploration of this skin...

@alistair3149
Copy link
Member

It should work since the section transformer is ported from MobileFrontend originally. I will double check and test against older MW version just to be safe.

@alistair3149 alistair3149 merged commit 6f5b761 into StarCitizenTools:main Nov 15, 2023
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants