From: umherirrender Date: Thu, 5 Jun 2014 18:05:34 +0000 (+0200) Subject: Do not wrap inside

on Special:UserRights X-Git-Tag: 1.31.0-rc.0~15460 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/pie.php?a=commitdiff_plain;h=c9e7873b626bae8c799d0a550d12e752864ea534;p=lhc%2Fweb%2Fwiklou.git 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 --- 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' ) ) . "
" .