Page MenuHomePhabricator

wgUseCategoryBrowser mode (Category browser) generates invalid XHTML nesting
Closed, DeclinedPublic


Author: gangleri

Dear friends,

the url is a validation link for

The result is:

Validation Output: 1 Error

  1. Error Line 531, Column 257: document type does not allow element "hr" here; missing one of "object", "applet", "map", "iframe", "button", "ins", "del" start-tag.

    …ly big category</a></span><br /><hr /><a href="/wiki/Category:Really_big_cate

    The mentioned element is not allowed to appear in the context in which you've placed it; the other mentioned elements are the only ones that are both allowed there and can contain the element mentioned. This might mean that you need a containing element, or possibly that you've forgotten to close a previous element.

    One possible cause for this message is that you have attempted to put a block-level element (such as "<p>" or "<table>") inside an inline element (such as "<a>", "<span>", or "<font>").

Best regards Reinhardt [[user:Gangleri]]

Version: unspecified
Severity: normal



Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:01 PM
bzimport added a project: MediaWiki-Parser.
bzimport set Reference to bz12408.
bzimport added a subscriber: Unknown Object (MLST).

This seems to be triggered by the wgUseCategoryBrowser mode, which was mysteriously enabled on (I've now disabled it, so the sample URL no longer triggers the error.)

There's a good chance there's other breakage with this mode, which is off by default and unused at Wikimedia sites.

WORKSFORME as of current trunk. All elements are nested properly.