From c9e7873b626bae8c799d0a550d12e752864ea534 Mon Sep 17 00:00:00 2001 From: umherirrender Date: Thu, 5 Jun 2014 20:05:34 +0200 Subject: [PATCH] Do not wrap inside

on Special:UserRights Special:UserRights has a table inside a paragraph which is invalid html. The validator will except the open

but than gives a error on the closing

: "No p element in scope but a p end tag seen." IE11 also gives a hint on the console (hint HTML1509). Fixed this by just removing the paragraph. Change-Id: Ie17725d0b8018853e445142fa9c436db5471dcc6 --- includes/specials/SpecialUserrights.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/specials/SpecialUserrights.php b/includes/specials/SpecialUserrights.php index 8a5ba1d648..411970e780 100644 --- a/includes/specials/SpecialUserrights.php +++ b/includes/specials/SpecialUserrights.php @@ -547,7 +547,7 @@ class UserrightsPage extends SpecialPage { ->rawParams( $userToolLinks )->parse() . $this->msg( 'userrights-groups-help', $user->getName() )->parse() . $grouplist . - Xml::tags( 'p', null, $this->groupCheckboxes( $groups, $user ) ) . + $this->groupCheckboxes( $groups, $user ) . Xml::openElement( 'table', array( 'id' => 'mw-userrights-table-outer' ) ) . "
" . -- 2.20.1