Page MenuHomePhabricator

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

Description

Author: gangleri

Description:
Dear friends,

the url is a w3.org validation link for
http://test.wikipedia.org/wiki/talk:Main_Page?oldid=29834

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
URL: http://validator.w3.org/check?uri=http%3A%2F%2Ftest.wikipedia.org%2Fwiki%2Ftalk%3AMain_Page%3Foldid%3D29834&charset=%28detect+automatically%29&doctype=Inline&group=0

Details

Reference
bz12408

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 test.wikipedia.org. (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.