Page MenuHomePhabricator

no tidy for the html-preview
Closed, ResolvedPublic

Description

Author: a.d.bergi

Description:
When you preview unclosed tags, they are not fixed by the Sanitizer. So their styles affect all the following elements, first of all the sidebar. Also try this link: http://de.wikipedia.org/wiki/Spezial:Vorlagen_expandieren?input=%3Cdiv%3E

The Layout is smashed into pieces which shouldnt happen.


Version: unspecified
Severity: major
URL: http://de.wikipedia.org/wiki/Spezial:Vorlagen_expandieren?input=%3Cstrong%20class=%22error%22%3E

Details

Reference
bz25888

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:17 PM
bzimport set Reference to bz25888.
bzimport added a subscriber: Unknown Object (MLST).

Created attachment 7814
Add Tidy option to ExpandTemplates

This actually adds a tidy option to the ExpandTemplates option. Default is to tidy.

Untested, since I don't use tidy here.

Attached:

a.d.bergi wrote:

I don't think its necessary to have a option. Whoever would like to see untidied HTML can use the API (action=parse).

a.d.bergi wrote:

*** Bug 21621 has been marked as a duplicate of this bug. ***