EditPage: Restore the old 'id' attributes in OOUI mode
authorBartosz Dziewoński <matma.rex@gmail.com>
Sat, 20 May 2017 10:23:18 +0000 (12:23 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Thu, 1 Jun 2017 15:48:26 +0000 (17:48 +0200)
commitce2290e4817d78bbb400f1fec28cf4747eab8e1d
treec4e042eebee761a93e42794465b5bd639cfb24a3
parent586dc66ddda1ee3645c3f5c70c532bc0300c1f52
EditPage: Restore the old 'id' attributes in OOUI mode

For compatibility with old scripts and extensions, we want the legacy
'id' on the `<input>` elements. There is really no good justification
for breaking all of them when we can easily support it.

The actual `<input>` elements have their ids back: 'wpSummary',
'wpSave', 'wpPreview', 'wpDiff', 'wpMinoredit', 'wpWatchthis'.

The widgets (wrapped `<div>`s) now use ids with 'Widget' appended.

Bug: T165854
Change-Id: I4d23f57fd0cda4b8539ffb17a2a19ecd822e077a
includes/EditPage.php
resources/src/mediawiki.action/mediawiki.action.edit.js
resources/src/mediawiki.action/mediawiki.action.edit.styles.css