Page MenuHomePhabricator

Double quotes are turned into single quotes when the element is not accepted as HTML
Closed, ResolvedPublic

Description

On http://parsoid.wmflabs.org/_wikitext/

Input:

<a title="1"></a>

Output:

<a title='1'></a>

Expected:

<a title="1"></a>


Version: unspecified
Severity: normal

Details

Reference
bz41225

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 22 2014, 1:03 AM
bzimport added a project: Parsoid.
bzimport set Reference to bz41225.

We don't intend to track this and similar minor syntactical issue, as it does not make a difference to the HTML DOM produced. The production version will use selective serialization only of modified parts of the page, so that these syntactic diffs won't result in dirty diffs.

When NOT accepted as HTML, this is not a syntactical issue but users will see those different quotes directly.

Good point, we should try to use the tsr if available to sanitize to the original wikitext in the sanitizer.