Page MenuHomePhabricator

FlaggedRevs should not use obsolete HTML attributes (use CSS instead)
Closed, ResolvedPublic

Description

FlaggablePageView.php should use CSS instead of obsolete HTML attributes such as "align", "border", "width", "cellpadding" and "cellspacing".

Event Timeline

He7d3r raised the priority of this task from to Needs Triage.
He7d3r updated the task description. (Show Details)
He7d3r added a project: good first task.
He7d3r subscribed.
Aklapper added a project: FlaggedRevs.

[Please add a code project; setting FlaggedRevs here]

Change 266047 had a related patch set uploaded (by IoannisKydonis):
Replace obsolete HTML attributes with CSS.

https://gerrit.wikimedia.org/r/266047

Change 266047 abandoned by Thiemo Kreuz (WMDE):
[mediawiki/extensions/FlaggedRevs@master] Replace obsolete HTML attributes with CSS.

Reason:
Sorry, but all this patch does is replacing one style with another one, without actually improving the situation. The issue is not really which syntax is used. The old one works just fine. Browsers will never stop supporting it. The issue is that this stuff is hard-coded in the middle of the HTML.

https://gerrit.wikimedia.org/r/266047

taavi subscribed.

Removing Patch-Needs-Improvement since the patch was abandoned and good first task since it isn't one, the styles need to be moved to some RL module, not sure which or if it needs a new one, which does not meet "well-described with pointers to help an absolute newcomer".

The attributes have been

Should we

  • close this task as resolved, given that the HTML attributes have been removed,
  • or re-scope it to ask for migration to stylesheets?
Izno claimed this task.
Izno subscribed.

I'll close. Eyeballing the extension seems to indicate there is some HTML modernization to be done given the wide use of tables as well. One of which is for the diff view (which in core uses divs and CSS grid these days), and at least one other table use looks like it's presentational. A separate task identifying those issues seems more apropos.

Izno removed Izno as the assignee of this task.Mon, Nov 11, 12:17 AM