Last modified: 2014-01-24 21:46:41 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 T62006, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 60006 - Purge cacheKey from data-parsoid before dumping DOM
Purge cacheKey from data-parsoid before dumping DOM
Status: RESOLVED FIXED
Product: Parsoid
Classification: Unclassified
DOM (Other open bugs)
unspecified
All All
: Unprioritized normal
: ---
Assigned To: Gabriel Wicke
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2014-01-13 16:17 UTC by ssastry
Modified: 2014-01-24 21:46 UTC (History)
5 users (show)

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


Attachments

Description ssastry 2014-01-13 16:17:53 UTC
See example below:

[subbu@earth lib] echo "[[Image:Foo.jpg|thumb|200px]]" |node parse
<body data-parsoid='{"dsr":[0,30,0,0]}'><figure typeof="mw:Image/Thumb" data-parsoid='{"optList":[{"ck":"thumbnail","ak":"thumb"},{"ck":"width","ak":"200px"}],"cacheKey":"[[Image:Foo.jpg|thumb|200px]]","dsr":[0,29,2,2]}'><a href="./File:Foo.jpg" data-parsoid='{"a":{"href":"./File:Foo.jpg"},"dsr":[2,27,null,null]}'><img resource="./File:Foo.jpg" src="//upload.wikimedia.org/wikipedia/commons/thumb/0/06/Foo.jpg/200px-Foo.jpg" height="131" width="200" data-parsoid='{"a":{"resource":"./File:Foo.jpg","height":"131"},"sa":{"resource":"Image:Foo.jpg","height":""}}'/></a></figure>
</body>
Comment 1 ssastry 2014-01-13 16:19:06 UTC
This is not specific to images. Maybe something to handle in dom.cleanup.js?
Comment 2 ssastry 2014-01-24 21:46:41 UTC
Fixed in https://gerrit.wikimedia.org/r/#/c/107730/

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


Navigation
Links