Subramanya Sastry has uploaded a new change for review.
Change subject: Bug fix in code that tested if serializer is handling tpl
content.
......................................................................
Bug fix in code that tested if serializer is handling tpl content.
Discovered a bug (reduced test case from en:3D secure) RTing the snippet
below:
-----------
<ref>{{cite
web|url=http://blah|title=Visa|format=PDF|date=|accessdate=2010-08-11}}</ref>
<references />
foo
-----------
All content after the <references /> tag was being ignored which
was because the serializer thought it was still handing template
content. For some reason, this same code was working before the
refactoring, but that must have been a weird effect of checks
between null and empty string. The current patch is more robust
and more explicit.
Eliminates RT error from en:3D secure (and possibly from many other
pages being rt-tested).
Change-Id: Iff5ea6590ebc84e91491c7a228b0b90bc30e880f
---
M js/lib/mediawiki.WikitextSerializer.js
1 file changed, 7 insertions(+), 2 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Parsoid
refs/changes/91/43591/1
--
To view, visit https://gerrit.wikimedia.org/r/43591
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Iff5ea6590ebc84e91491c7a228b0b90bc30e880f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Parsoid
Gerrit-Branch: master
Gerrit-Owner: Subramanya Sastry <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits