Last modified: 2013-07-04 10:33:54 UTC
https://gerrit.wikimedia.org/r/30313 adds a mechanism to preserve the wikitext of attributes. This should be expanded to cover more attribute keys emitted in the serializer, and should also be extended to cover values. See the comment in line 293 in ext.core.LinkHandler.js for another use case. Basically, make sure we don't round-trip to the output of tokensToString when something is not preserved as-is because it contains non-text tokens.
Simple test case: echo '<div title="<!-- foo -->hello">foo</div>' | nodejs parse --wt2wt <div title="hello">foo</div> We currently don't shadow HTML attributes.
Fixed with https://gerrit.wikimedia.org/r/#/c/54491/. Thank you Jeff!
[Parsoid component reorg by merging JS/General and General. See bug 50685 for more information. Filter bugmail on this comment. parsoidreorg20130704]