Page MenuHomePhabricator

Invalid HTML
Closed, ResolvedPublic

Description

W3C says the value of attribute "id" cannot start with a dot (".").

If the title of a section begins with a special or non-ascii character, MediaWiki generates HTML like <a name=".E7.89.B9.E8.89.B2.E6.A2.9D.E7.9B.AE" id=".E7.89.B9.E8.89.B2.E6.A2.9D.E7.9B.AE"></a>.

id=".E7.89.B9.E8.89.B2.E6.A2.9D.E7.9B.AE" goes again that rule.

Since <a name=".E7.89.B9.E8.89.B2.E6.A2.9D.E7.9B.AE"></a> also works, id=".E7.89.B9.E8.89.B2.E6.A2.9D.E7.9B.AE" can be removed.


Version: 1.16.x
Severity: normal
URL: http://validator.w3.org/check?uri=http%3A%2F%2Fzh.wikipedia.org%2F

Details

Reference
bz19890

Event Timeline

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

herd wrote:

*** This bug has been marked as a duplicate of bug 9530 ***