= Background
The MobileFormatter only runs on the mobile version of skins. This means desktop skins do not have section markup meaning much of the Minerva JS fails miserably. These problems include...
= section edit icons hidden
Because collapsing doesn't run, and sections are collapsed by default, the edit icons are not shown.
= edit pencil points to wrong section
Visiting https://en.wikipedia.beta.wmflabs.org/wiki/Claude_Monet?useskin=minerva, when I click the edit link it tries to edit section 1 rather than section 0.
This also seems to impact mobile pages e.g. when you click edit on https://en.m.wikipedia.org/wiki/Template:Did_you_know_nominations/Bill_Dubuque
= page issues
Do not appear on any desktop page.
e.g.
https://en.wikipedia.beta.wmflabs.org/wiki/Selenium_page_issues_test_page?useskin=minerva
Compare this with:
https://en.m.wikipedia.beta.wmflabs.org/wiki/Selenium_page_issues_test_page where a page issue shows in the top.
= Developer notes
The issue appears to be with the method Page:getLeadSectionElement -it is not possible to locate a lead element as this doesn't exist.
Options:
* We can return the entire page when we cannot locate the lead section. This means all content in the page will be treated as if it is in the lead section. Cons: side effects?
* Update MinervaNeue's startup scripts to counter for this. When null is returned as lead section, operate differently. Add unit tests for this logic
* ...?
= Sign off
[] Remove patch in https://en.wikipedia.org/wiki/MediaWiki:Minerva.js