Last modified: 2013-01-16 00:53:24 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T43225, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 41225 - Double quotes are turned into single quotes when the element is not accepted as HTML
Double quotes are turned into single quotes when the element is not accepted ...
Status: RESOLVED FIXED
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Gabriel Wicke
:
Depends on:
Blocks: 39567
  Show dependency treegraph
 
Reported: 2012-10-19 21:05 UTC by Liangent
Modified: 2013-01-16 00:53 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Liangent 2012-10-19 21:05:17 UTC
On http://parsoid.wmflabs.org/_wikitext/

Input:

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

Output:

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

Expected:

<a title="1"></a>
Comment 1 Gabriel Wicke 2012-10-19 22:06:24 UTC
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.
Comment 2 Liangent 2012-10-19 22:11:01 UTC
When NOT accepted as HTML, this is not a syntactical issue but users will see those different quotes directly.
Comment 3 Gabriel Wicke 2012-10-19 22:19:24 UTC
Good point, we should try to use the tsr if available to sanitize to the original wikitext in the sanitizer.
Comment 4 Gabriel Wicke 2013-01-16 00:53:24 UTC
The test case above is fixed.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links