jenkins-bot has submitted this change and it was merged. ( https://gerrit.wikimedia.org/r/387833 )
Change subject: Linter: Image captions are not affected by tidy-font-bug ...................................................................... Linter: Image captions are not affected by tidy-font-bug See https://www.mediawiki.org/wiki/Topic:U149apx11uv6l1x0 Change-Id: I735b734c2ff9d3770da296327b54c72a54e084c0 --- M lib/wt2html/pp/handlers/linter.js M tests/mocha/linter.js 2 files changed, 0 insertions(+), 4 deletions(-) Approvals: jenkins-bot: Verified Arlolra: Looks good to me, approved diff --git a/lib/wt2html/pp/handlers/linter.js b/lib/wt2html/pp/handlers/linter.js index 22712e7..d50a5ec 100644 --- a/lib/wt2html/pp/handlers/linter.js +++ b/lib/wt2html/pp/handlers/linter.js @@ -484,8 +484,6 @@ for (var n = c.firstChild; n; n = n.nextSibling) { if (!DU.isComment(n) && n.nodeName !== 'A' && - n.nodeName !== 'FIGURE' && - !(n.nodeName === 'SPAN' && /\bmw:Image\b/.test(n.getAttribute('typeof'))) && !DU.isBehaviorSwitch(env, n) && !DU.isSolTransparentLink(n) && !(n.nodeName === 'META' && Util.TPL_META_TYPE_REGEXP.test(n.getAttribute('typeof'))) diff --git a/tests/mocha/linter.js b/tests/mocha/linter.js index d710ede..be4fe7d 100644 --- a/tests/mocha/linter.js +++ b/tests/mocha/linter.js @@ -754,8 +754,6 @@ "<font color='green'>[[Foo|bar]]</font>", "<font color='green'>[[Foo|''bar'']]</font>", "<font color='green'>[[Foo|''bar'' and boo]]</font>", - "<font color='green'>[[File:Foo.jpg|some caption]]</font>", - "<font color='green'>[[File:Foo.jpg|thumb|128px|some caption]]</font>", "<font color='green'>[[Foo]]l</font>", "<font color='green'>{{1x|[[Foo]]}}</font>", ]; -- To view, visit https://gerrit.wikimedia.org/r/387833 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I735b734c2ff9d3770da296327b54c72a54e084c0 Gerrit-PatchSet: 3 Gerrit-Project: mediawiki/services/parsoid Gerrit-Branch: master Gerrit-Owner: Subramanya Sastry <[email protected]> Gerrit-Reviewer: Arlolra <[email protected]> Gerrit-Reviewer: C. Scott Ananian <[email protected]> Gerrit-Reviewer: Legoktm <[email protected]> Gerrit-Reviewer: Sbailey <[email protected]> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list [email protected] https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
