Last modified: 2013-07-04 10:33:49 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 T48826, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 46826 - Sanitizer breaks microdata
Sanitizer breaks microdata
Status: NEW
Product: Parsoid
Classification: Unclassified
General (Other open bugs)
unspecified
All All
: Normal normal
: ---
Assigned To: Gabriel Wicke
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-04-03 02:44 UTC by C. Scott Ananian
Modified: 2013-07-04 10:33 UTC (History)
1 user (show)

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


Attachments

Description C. Scott Ananian 2013-04-03 02:44:00 UTC
The "Sanitizer: Validating that <meta> and <link> work, but only for Microdata" test case expects that:
	<link itemprop="hello" href="{{SERVER}}">
is expanded to
	<link itemprop="hello" href="http&#58;//example.org" />
but that
	<link rel="stylesheet" href="{{SERVER}}">
is sanitized to
	&lt;link rel="stylesheet" href="<a rel="nofollow" class="external free" href="http://example.org">http://example.org</a>"&gt;

We currently render these as:
	&lt;link itemprop="hello" href="{{SERVER}}"&gt
        &lt;link rel="stylesheet" itemprop="hello" href="{{SERVER}}"&gt;

That is, the sanitizer is breaking metadata in the first example (which it
shouldn't) and {{SERVER}} isn't being expanded in either.
Comment 1 Andre Klapper 2013-07-04 10:33:49 UTC
[Parsoid component reorg by merging JS/General and General. See bug 50685 for more information. Filter bugmail on this comment. parsoidreorg20130704]

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


Navigation
Links