Page MenuHomePhabricator

find another way to store titles of homepage sections
Closed, ResolvedPublic

Description

Author: a.d.bergi

Description:
As explained in http://meta.wikimedia.org/wiki/Mobile_Projects/Mobile_Gateway#Global_Prefix every element (you don't really mean "selector") which should appear on a mobile homepage needs to have an id beginning with mf or mp, OK. But It also says that it /needs/ a title attribute! For what, to generate the corresponding heading out of it?!
The title attribute is the reason for an annoying tooltip on the element, or is read by screen readers - as specified in http://www.w3.org/TR/html4/struct/global.html#title. But it's redundant to the already existing heading element, which makes it very annoying.

So I'd propose either to change it to an invisible and inhearable metadata attribute, or just give the corresponding heading an identifier to associate them together.
The "summary" attribute would offer a telling name, but a) only belongs to <table> elements and b) is read by audible UAs.
So why not just give the <section> an id "m[obile]s[ection]-xyz" and the corresponding <hN> the id "m[obile]h[eading]-xyz"?


Version: unspecified
Severity: major

Details

Reference
bz32583
TitleReferenceAuthorSource BranchDest Branch
Update analytics mw history check and reduced jobsrepos/data-engineering/airflow-dags!488joalupdate_analytics_mediawiki_history_check_jobmain
Customize query in GitLab

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 12:06 AM
bzimport set Reference to bz32583.
bzimport added a subscriber: Unknown Object (MLST).

this should really be on the mobile gate component, I think.

  • Bug 31316 has been marked as a duplicate of this bug. ***

Perhaps data- attributes are a good candidate (blocked by wgHtml5 enabling)

I'm marking as a duplicate as the main page has more problems than just this and it would be better tackling all of this together in bug 30405 .

  • This bug has been marked as a duplicate of bug 30405 ***