Context
On iOS, users can define whether they want article tables to be collapsed or expanded by default. This means that we need to be able to communicate that preference to the html.
We also need to be able to pass our localized strings for table titles. (T205550)
Proposed solution
Provide a JS function that allows clients to adjust tables.
For example (once T205550 is completed):
wmf.adjustTables = (collapse, locale) => { // adjust tables if (callback) { callback(); }; };
Questions
Currently, on iOS, when the user taps on a collapsed table's footer, we scroll them back to the top of that table. Is this behavior going to move up to page library or are we expected to continue handling it ourselves?