jenkins-bot has submitted this change and it was merged. (
https://gerrit.wikimedia.org/r/372422 )
Change subject: Remove inline styling for vertical alignment in traditional
galleries
......................................................................
Remove inline styling for vertical alignment in traditional galleries
Depends-On: I718f16dfbb2c4122ac9fb4a714b607da3e62d5a0
Change-Id: Ief55da2cbe29096a78a7ba6584e6a6f3a5a92a04
---
M lib/ext/Gallery/modes.js
M tests/citeParserTests-blacklist.js
M tests/parserTests-blacklist.js
M tests/parserTests.txt
M tests/timedMediaHandlerParserTests.txt
5 files changed, 42 insertions(+), 60 deletions(-)
Approvals:
Subramanya Sastry: Looks good to me, approved
jenkins-bot: Verified
diff --git a/lib/ext/Gallery/modes.js b/lib/ext/Gallery/modes.js
index 8fdca5b..8929ff3 100644
--- a/lib/ext/Gallery/modes.js
+++ b/lib/ext/Gallery/modes.js
@@ -56,23 +56,6 @@
ul.appendChild(li);
};
-Traditional.prototype.verticalAlign = function(doc, thumb, wrapper) {
- if (this.mode !== 'traditional') { return; }
- // `helper` and `wrapper` are from http://stackoverflow.com/a/7310398
- // avoid the need to calculate paddings individually
- var helper = doc.createElement('span');
- helper.setAttribute('style', [
- 'display: inline-block;',
- 'height: 100%;',
- 'vertical-align: middle;',
- ].join(' '));
- thumb.appendChild(helper);
- wrapper.setAttribute('style', [
- 'vertical-align: middle;',
- 'display: inline-block;',
- ].join(' '));
-};
-
Traditional.prototype.dimensions = function(opts) {
return coreutil.format('%dx%dpx', opts.imageWidth, opts.imageHeight);
};
@@ -133,7 +116,6 @@
wrapper.setAttribute('typeof', o.rdfaType);
}
DU.migrateChildrenBetweenDocs(o.thumb, wrapper);
- this.verticalAlign(doc, thumb, wrapper);
thumb.appendChild(wrapper);
box.appendChild(thumb);
diff --git a/tests/citeParserTests-blacklist.js
b/tests/citeParserTests-blacklist.js
index 7a53917..5c09fdd 100644
--- a/tests/citeParserTests-blacklist.js
+++ b/tests/citeParserTests-blacklist.js
@@ -46,7 +46,7 @@
add("wt2html", "<ref> in a <nowiki>", "<p
data-parsoid='{\"dsr\":[0,57,0,0]}'>Templating<span typeof=\"mw:Nowiki\"
data-parsoid='{\"dsr\":[10,57,8,9]}'><ref>{{simple
template}}</ref></span></p>\n\n<ol class=\"mw-references\"
typeof=\"mw:Extension/references\" about=\"#mwt3\"
data-parsoid='{\"dsr\":[59,72,2,2]}'
data-mw='{\"name\":\"references\",\"attrs\":{}}'></ol>");
add("wt2html", "<ref> in a <!--comment-->", "<p
data-parsoid='{\"dsr\":[0,10,0,0]}'>Templating</p><!--<ref>{{simple
template}}</ref>-->\n\n<ol class=\"mw-references\"
typeof=\"mw:Extension/references\" about=\"#mwt2\"
data-parsoid='{\"dsr\":[49,62,2,2]}'
data-mw='{\"name\":\"references\",\"attrs\":{}}'></ol>");
add("wt2html", "<!--comment--> in a <ref> (bug 5384)", "<p
data-parsoid='{\"dsr\":[0,39,0,0]}'>Templating<span about=\"#mwt2\"
class=\"mw-ref\" id=\"cite_ref-1\" rel=\"dc:references\"
typeof=\"mw:Extension/ref\" data-parsoid='{\"dsr\":[10,39,5,6]}'
data-mw='{\"name\":\"ref\",\"body\":{\"id\":\"mw-reference-text-cite_note-1\"},\"attrs\":{}}'><a
href=\"./Main_Page#cite_note-1\" style=\"counter-reset: mw-Ref 1;\"><span
class=\"mw-reflink-text\">[1]</span></a></span></p>\n\n<ol
class=\"mw-references\" typeof=\"mw:Extension/references\" about=\"#mwt4\"
data-parsoid='{\"dsr\":[41,54,2,2]}'
data-mw='{\"name\":\"references\",\"attrs\":{}}'><li about=\"#cite_note-1\"
id=\"cite_note-1\"><a href=\"./Main_Page#cite_ref-1\"
rel=\"mw:referencedBy\"><span class=\"mw-linkback-text\">↑ </span></a> <span
id=\"mw-reference-text-cite_note-1\" class=\"mw-reference-text\"
data-parsoid=\"{}\">Text<!--comment--></span></li></ol>");
-add("wt2html", "<references> after <gallery> (bug 6164)", "<p
data-parsoid='{\"dsr\":[0,14,0,0]}'><span about=\"#mwt2\" class=\"mw-ref\"
id=\"cite_ref-1\" rel=\"dc:references\" typeof=\"mw:Extension/ref\"
data-parsoid='{\"dsr\":[0,14,5,6]}'
data-mw='{\"name\":\"ref\",\"body\":{\"id\":\"mw-reference-text-cite_note-1\"},\"attrs\":{}}'><a
href=\"./Main_Page#cite_note-1\" style=\"counter-reset: mw-Ref 1;\"><span
class=\"mw-reflink-text\">[1]</span></a></span></p>\n\n<ul class=\"gallery
mw-gallery-traditional\" typeof=\"mw:Extension/gallery\" about=\"#mwt6\"
data-parsoid='{\"dsr\":[16,51,2,2]}'
data-mw='{\"name\":\"gallery\",\"attrs\":{},\"body\":{\"extsrc\":\"Image:Foobar.jpg\"}}'>\n<li
class=\"gallerybox\" style=\"width: 155px;\"><div class=\"thumb\"
style=\"width: 150px; height: 150px;\"><span style=\"display: inline-block;
height: 100%; vertical-align: middle;\"></span><span typeof=\"mw:Image\"
style=\"vertical-align: middle; display: inline-block;\"><a
href=\"./File:Foobar.jpg\"><img resource=\"./File:Foobar.jpg\"
src=\"//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg\"
data-file-width=\"1941\" data-file-height=\"220\" data-file-type=\"bitmap\"
height=\"14\" width=\"120\"/></a></span></div><div
class=\"gallerytext\"></div></li>\n</ul>\n\n<ol class=\"mw-references\"
typeof=\"mw:Extension/references\" about=\"#mwt5\"
data-parsoid='{\"dsr\":[53,66,2,2]}'
data-mw='{\"name\":\"references\",\"attrs\":{}}'><li about=\"#cite_note-1\"
id=\"cite_note-1\"><a href=\"./Main_Page#cite_ref-1\"
rel=\"mw:referencedBy\"><span class=\"mw-linkback-text\">↑ </span></a> <span
id=\"mw-reference-text-cite_note-1\" class=\"mw-reference-text\"
data-parsoid=\"{}\">one</span></li></ol>");
+add("wt2html", "<references> after <gallery> (bug 6164)", "<p
data-parsoid='{\"dsr\":[0,14,0,0]}'><span about=\"#mwt2\" class=\"mw-ref\"
id=\"cite_ref-1\" rel=\"dc:references\" typeof=\"mw:Extension/ref\"
data-parsoid='{\"dsr\":[0,14,5,6]}'
data-mw='{\"name\":\"ref\",\"body\":{\"id\":\"mw-reference-text-cite_note-1\"},\"attrs\":{}}'><a
href=\"./Main_Page#cite_note-1\" style=\"counter-reset: mw-Ref 1;\"><span
class=\"mw-reflink-text\">[1]</span></a></span></p>\n\n<ul class=\"gallery
mw-gallery-traditional\" typeof=\"mw:Extension/gallery\" about=\"#mwt6\"
data-parsoid='{\"dsr\":[16,51,2,2]}'
data-mw='{\"name\":\"gallery\",\"attrs\":{},\"body\":{\"extsrc\":\"Image:Foobar.jpg\"}}'>\n<li
class=\"gallerybox\" style=\"width: 155px;\"><div class=\"thumb\"
style=\"width: 150px; height: 150px;\"><span typeof=\"mw:Image\"><a
href=\"./File:Foobar.jpg\"><img resource=\"./File:Foobar.jpg\"
src=\"//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg\"
data-file-width=\"1941\" data-file-height=\"220\" data-file-type=\"bitmap\"
height=\"14\" width=\"120\"/></a></span></div><div
class=\"gallerytext\"></div></li>\n</ul>\n\n<ol class=\"mw-references\"
typeof=\"mw:Extension/references\" about=\"#mwt5\"
data-parsoid='{\"dsr\":[53,66,2,2]}'
data-mw='{\"name\":\"references\",\"attrs\":{}}'><li about=\"#cite_note-1\"
id=\"cite_note-1\"><a href=\"./Main_Page#cite_ref-1\"
rel=\"mw:referencedBy\"><span class=\"mw-linkback-text\">↑ </span></a> <span
id=\"mw-reference-text-cite_note-1\" class=\"mw-reference-text\"
data-parsoid=\"{}\">one</span></li></ol>");
add("wt2html", "{{REVISIONID}} on page with <ref> (bug 6299)", "<p
data-parsoid='{\"dsr\":[0,30,0,0]}'><span about=\"#mwt2\"
typeof=\"mw:Transclusion\"
data-parsoid='{\"pi\":[[]],\"dsr\":[0,14,null,null]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"REVISIONID\",\"function\":\"revisionid\"},\"params\":{},\"i\":0}}]}'>Parser
function implementation for pf_revisionid missing in Parsoid.</span><span
about=\"#mwt3\" class=\"mw-ref\" id=\"cite_ref-1\" rel=\"dc:references\"
typeof=\"mw:Extension/ref\" data-parsoid='{\"dsr\":[14,30,5,6]}'
data-mw='{\"name\":\"ref\",\"body\":{\"id\":\"mw-reference-text-cite_note-1\"},\"attrs\":{}}'><a
href=\"./Main_Page#cite_note-1\" style=\"counter-reset: mw-Ref 1;\"><span
class=\"mw-reflink-text\">[1]</span></a></span></p>\n<ol
class=\"mw-references\" typeof=\"mw:Extension/references\" about=\"#mwt4\"
data-parsoid='{\"dsr\":[30,30,0,0]}'
data-mw='{\"name\":\"references\",\"attrs\":{},\"autoGenerated\":true}'><li
about=\"#cite_note-1\" id=\"cite_note-1\"><a href=\"./Main_Page#cite_ref-1\"
rel=\"mw:referencedBy\"><span class=\"mw-linkback-text\">↑ </span></a> <span
id=\"mw-reference-text-cite_note-1\" class=\"mw-reference-text\"
data-parsoid=\"{}\">elite</span></li></ol>");
add("wt2html", "{{REVISIONID}} on page without <ref> (bug 6299 sanity check)",
"<p about=\"#mwt1\" typeof=\"mw:Transclusion\"
data-parsoid='{\"dsr\":[0,14,0,0],\"pi\":[[]]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"REVISIONID\",\"function\":\"revisionid\"},\"params\":{},\"i\":0}}]}'>Parser
function implementation for pf_revisionid missing in Parsoid.</p>");
add("wt2html", "Ref with content followed by blank ref", "<p
data-parsoid='{\"dsr\":[0,31,0,0]}'><span about=\"#mwt2\" class=\"mw-ref\"
id=\"cite_ref-blank_1-0\" rel=\"dc:references\" typeof=\"mw:Extension/ref\"
data-parsoid='{\"dsr\":[0,31,18,6]}'
data-mw='{\"name\":\"ref\",\"body\":{\"id\":\"mw-reference-text-cite_note-blank-1\"},\"attrs\":{\"name\":\"blank\"}}'><a
href=\"./Main_Page#cite_note-blank-1\" style=\"counter-reset: mw-Ref
1;\"><span class=\"mw-reflink-text\">[1]</span></a></span></p>\n\n<p
data-parsoid='{\"dsr\":[33,52,0,0]}'><span about=\"#mwt4\" class=\"mw-ref\"
id=\"cite_ref-blank_1-1\" rel=\"dc:references\" typeof=\"mw:Extension/ref\"
data-parsoid='{\"dsr\":[33,52,19,0]}'
data-mw='{\"name\":\"ref\",\"attrs\":{\"name\":\"blank\"}}'><a
href=\"./Main_Page#cite_note-blank-1\" style=\"counter-reset: mw-Ref 1;\"><span
class=\"mw-reflink-text\">[1]</span></a></span></p>\n\n<ol
class=\"mw-references\" typeof=\"mw:Extension/references\" about=\"#mwt6\"
data-parsoid='{\"dsr\":[54,67,2,2]}'
data-mw='{\"name\":\"references\",\"attrs\":{}}'><li
about=\"#cite_note-blank-1\" id=\"cite_note-blank-1\"><span
rel=\"mw:referencedBy\"><a href=\"./Main_Page#cite_ref-blank_1-0\"><span
class=\"mw-linkback-text\">1 </span></a><a
href=\"./Main_Page#cite_ref-blank_1-1\"><span class=\"mw-linkback-text\">2
</span></a></span> <span id=\"mw-reference-text-cite_note-blank-1\"
class=\"mw-reference-text\" data-parsoid=\"{}\">content</span></li></ol>");
diff --git a/tests/parserTests-blacklist.js b/tests/parserTests-blacklist.js
index c939609..0acc152 100644
--- a/tests/parserTests-blacklist.js
+++ b/tests/parserTests-blacklist.js
@@ -170,7 +170,7 @@
add("wt2html", "Transclusion of MediaWiki message with space", "<p
data-parsoid='{\"dsr\":[0,27,0,0]}'><span about=\"#mwt2\" typeof=\"mw:Error
mw:Transclusion\" data-parsoid='{\"pi\":[[]],\"dsr\":[0,27,null,null]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"MediaWiki:history
short\",\"href\":\"./MediaWiki:History_short\"},\"params\":{},\"errors\":[{\"key\":\"mw-api-tplfetch-error\",\"message\":\"Page
/ template fetching disabled, and no cache for
MediaWiki:History_short\"}],\"i\":0}}]}'>{{MediaWiki:history
short}}</span></p>");
add("wt2html", "Special:Search page linking.", "<p
data-parsoid='{\"dsr\":[0,18,0,0]}'><span about=\"#mwt2\" typeof=\"mw:Error
mw:Transclusion\" data-parsoid='{\"pi\":[[]],\"dsr\":[0,18,null,null]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"Special:search\",\"href\":\"./Special:Search\"},\"params\":{},\"errors\":[{\"key\":\"mw-api-tplfetch-error\",\"message\":\"Page
/ template fetching disabled, and no cache for
Special:Search\"}],\"i\":0}}]}'>{{Special:search}}</span></p>");
add("wt2html", "Say the magic word", "<ul
data-parsoid='{\"dsr\":[0,544,0,0]}'><li data-parsoid='{\"dsr\":[0,14,1,0]}'>
<span about=\"#mwt1\" typeof=\"mw:Transclusion\"
data-parsoid='{\"pi\":[[]],\"dsr\":[2,14,null,null]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"PAGENAME\",\"function\":\"pagename\"},\"params\":{},\"i\":0}}]}'>Parser
test</span></li>\n<li data-parsoid='{\"dsr\":[15,30,1,0]}'> <span
about=\"#mwt2\" typeof=\"mw:Transclusion\"
data-parsoid='{\"dsr\":[17,30,null,null],\"pi\":[[]]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"PAGENAMEE\",\"function\":\"pagenamee\"},\"params\":{},\"i\":0}}]}'></span></li>\n<li
data-parsoid='{\"dsr\":[31,49,1,0]}'> <span about=\"#mwt3\"
typeof=\"mw:Transclusion\"
data-parsoid='{\"pi\":[[]],\"dsr\":[33,49,null,null]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"FULLPAGENAME\",\"function\":\"fullpagename\"},\"params\":{},\"i\":0}}]}'>Parser
test</span></li>\n<li data-parsoid='{\"dsr\":[50,69,1,0]}'> <span
about=\"#mwt4\" typeof=\"mw:Transclusion\"
data-parsoid='{\"pi\":[[]],\"dsr\":[52,69,null,null]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"FULLPAGENAMEE\",\"function\":\"fullpagenamee\"},\"params\":{},\"i\":0}}]}'>Parser
test</span></li>\n<li data-parsoid='{\"dsr\":[70,88,1,0]}'> <span
about=\"#mwt5\" typeof=\"mw:Transclusion\"
data-parsoid='{\"pi\":[[]],\"dsr\":[72,88,null,null]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"BASEPAGENAME\",\"function\":\"basepagename\"},\"params\":{},\"i\":0}}]}'>Parser
function implementation for pf_basepagename missing in
Parsoid.</span></li>\n<li data-parsoid='{\"dsr\":[89,108,1,0]}'> <span
about=\"#mwt6\" typeof=\"mw:Transclusion\"
data-parsoid='{\"pi\":[[]],\"dsr\":[91,108,null,null]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"BASEPAGENAMEE\",\"function\":\"basepagenamee\"},\"params\":{},\"i\":0}}]}'>Parser
function implementation for pf_basepagenamee missing in
Parsoid.</span></li>\n<li data-parsoid='{\"dsr\":[109,126,1,0]}'> <span
about=\"#mwt7\" typeof=\"mw:Transclusion\"
data-parsoid='{\"pi\":[[]],\"dsr\":[111,126,null,null]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"SUBPAGENAME\",\"function\":\"subpagename\"},\"params\":{},\"i\":0}}]}'>Parser
function implementation for pf_subpagename missing in
Parsoid.</span></li>\n<li data-parsoid='{\"dsr\":[127,145,1,0]}'> <span
about=\"#mwt8\" typeof=\"mw:Transclusion\"
data-parsoid='{\"pi\":[[]],\"dsr\":[129,145,null,null]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"SUBPAGENAMEE\",\"function\":\"subpagenamee\"},\"params\":{},\"i\":0}}]}'>Parser
function implementation for pf_subpagenamee missing in
Parsoid.</span></li>\n<li data-parsoid='{\"dsr\":[146,164,1,0]}'> <span
about=\"#mwt9\" typeof=\"mw:Transclusion\"
data-parsoid='{\"pi\":[[]],\"dsr\":[148,164,null,null]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"ROOTPAGENAME\",\"function\":\"rootpagename\"},\"params\":{},\"i\":0}}]}'>Parser
function implementation for pf_rootpagename missing in
Parsoid.</span></li>\n<li data-parsoid='{\"dsr\":[165,184,1,0]}'> <span
about=\"#mwt10\" typeof=\"mw:Transclusion\"
data-parsoid='{\"pi\":[[]],\"dsr\":[167,184,null,null]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"ROOTPAGENAMEE\",\"function\":\"rootpagenamee\"},\"params\":{},\"i\":0}}]}'>Parser
function implementation for pf_rootpagenamee missing in
Parsoid.</span></li>\n<li data-parsoid='{\"dsr\":[185,203,1,0]}'> <span
about=\"#mwt11\" typeof=\"mw:Transclusion\"
data-parsoid='{\"pi\":[[]],\"dsr\":[187,203,null,null]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"TALKPAGENAME\",\"function\":\"talkpagename\"},\"params\":{},\"i\":0}}]}'>Parser
test</span></li>\n<li data-parsoid='{\"dsr\":[204,223,1,0]}'> <span
about=\"#mwt12\" typeof=\"mw:Transclusion\"
data-parsoid='{\"pi\":[[]],\"dsr\":[206,223,null,null]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"TALKPAGENAMEE\",\"function\":\"talkpagenamee\"},\"params\":{},\"i\":0}}]}'>Parser
function implementation for pf_talkpagenamee missing in
Parsoid.</span></li>\n<li data-parsoid='{\"dsr\":[224,245,1,0]}'> <span
about=\"#mwt13\" typeof=\"mw:Transclusion\"
data-parsoid='{\"pi\":[[]],\"dsr\":[226,245,null,null]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"SUBJECTPAGENAME\",\"function\":\"subjectpagename\"},\"params\":{},\"i\":0}}]}'>Parser
function implementation for pf_subjectpagename missing in
Parsoid.</span></li>\n<li data-parsoid='{\"dsr\":[246,268,1,0]}'> <span
about=\"#mwt14\" typeof=\"mw:Transclusion\"
data-parsoid='{\"pi\":[[]],\"dsr\":[248,268,null,null]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"SUBJECTPAGENAMEE\",\"function\":\"subjectpagenamee\"},\"params\":{},\"i\":0}}]}'>Parser
function implementation for pf_subjectpagenamee missing in
Parsoid.</span></li>\n<li data-parsoid='{\"dsr\":[269,285,1,0]}'> <span
about=\"#mwt15\" typeof=\"mw:Transclusion\"
data-parsoid='{\"pi\":[[]],\"dsr\":[271,285,null,null]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"NAMESPACEE\",\"function\":\"namespacee\"},\"params\":{},\"i\":0}}]}'>Main</span></li>\n<li
data-parsoid='{\"dsr\":[286,301,1,0]}'> <span about=\"#mwt16\"
typeof=\"mw:Transclusion\"
data-parsoid='{\"pi\":[[]],\"dsr\":[288,301,null,null]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"NAMESPACE\",\"function\":\"namespace\"},\"params\":{},\"i\":0}}]}'>Main</span></li>\n<li
data-parsoid='{\"dsr\":[302,323,1,0]}'> <span about=\"#mwt17\"
typeof=\"mw:Transclusion\"
data-parsoid='{\"pi\":[[]],\"dsr\":[304,323,null,null]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"NAMESPACENUMBER\",\"function\":\"namespacenumber\"},\"params\":{},\"i\":0}}]}'>0</span></li>\n<li
data-parsoid='{\"dsr\":[324,339,1,0]}'> <span about=\"#mwt18\"
typeof=\"mw:Transclusion\"
data-parsoid='{\"pi\":[[]],\"dsr\":[326,339,null,null]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"TALKSPACE\",\"function\":\"talkspace\"},\"params\":{},\"i\":0}}]}'>Talk</span></li>\n<li
data-parsoid='{\"dsr\":[340,356,1,0]}'> <span about=\"#mwt19\"
typeof=\"mw:Transclusion\"
data-parsoid='{\"pi\":[[]],\"dsr\":[342,356,null,null]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"TALKSPACEE\",\"function\":\"talkspacee\"},\"params\":{},\"i\":0}}]}'>Parser
function implementation for pf_talkspacee missing in Parsoid.</span></li>\n<li
data-parsoid='{\"dsr\":[357,375,1,0]}'> <span about=\"#mwt20\"
typeof=\"mw:Transclusion\"
data-parsoid='{\"pi\":[[]],\"dsr\":[359,375,null,null]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"SUBJECTSPACE\",\"function\":\"subjectspace\"},\"params\":{},\"i\":0}}]}'>Main</span></li>\n<li
data-parsoid='{\"dsr\":[376,395,1,0]}'> <span about=\"#mwt21\"
typeof=\"mw:Transclusion\"
data-parsoid='{\"pi\":[[]],\"dsr\":[378,395,null,null]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"SUBJECTSPACEE\",\"function\":\"subjectspacee\"},\"params\":{},\"i\":0}}]}'>Parser
function implementation for pf_subjectspacee missing in
Parsoid.</span></li>\n<li data-parsoid='{\"dsr\":[396,544,1,0]}'> <span
about=\"#mwt30\" typeof=\"mw:Error mw:Transclusion\"
data-parsoid='{\"pi\":[[{\"k\":\"1\"},{\"k\":\"2\"},{\"k\":\"3\"},{\"k\":\"4\"},{\"k\":\"5\"},{\"k\":\"6\"},{\"k\":\"7\"}]],\"dsr\":[398,544,null,null]}'
data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"Dynamic\",\"href\":\"./Template:Dynamic\"},\"params\":{\"1\":{\"wt\":\"{{NUMBEROFUSERS}}\"},\"2\":{\"wt\":\"{{NUMBEROFPAGES}}\"},\"3\":{\"wt\":\"{{CURRENTVERSION}}\"},\"4\":{\"wt\":\"{{CONTENTLANGUAGE}}\"},\"5\":{\"wt\":\"{{DIRECTIONMARK}}\"},\"6\":{\"wt\":\"{{CURRENTTIMESTAMP}}\"},\"7\":{\"wt\":\"{{NUMBEROFARTICLES}}\"}},\"errors\":[{\"key\":\"mw-api-tplfetch-error\",\"message\":\"Page
/ template fetching disabled, and no cache for
Template:Dynamic\"}],\"i\":0}}]}'>{{Dynamic|{{NUMBEROFUSERS}}|{{NUMBEROFPAGES}}|{{CURRENTVERSION}}|{{CONTENTLANGUAGE}}|{{DIRECTIONMARK}}|{{CURRENTTIMESTAMP}}|{{NUMBEROFARTICLES}}}}</span></li></ul>");
-add("wt2html", "Gallery override link with absolute external link with
LanguageConverter", "<ul class=\"gallery mw-gallery-traditional\"
typeof=\"mw:Extension/gallery\" about=\"#mwt2\"
data-parsoid='{\"dsr\":[0,87,2,2]}'
data-mw='{\"name\":\"gallery\",\"attrs\":{},\"body\":{\"extsrc\":\"\\nFile:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org\\n\"}}'>\n<li
class=\"gallerybox\" style=\"width: 155px;\"><div class=\"thumb\"
style=\"width: 150px; height: 150px;\"><span style=\"display: inline-block;
height: 100%; vertical-align: middle;\"></span><span typeof=\"mw:Image\"
style=\"vertical-align: middle; display: inline-block;\"><a
href=\"http://www.example.org\"><img alt=\"galleryalt\"
resource=\"./File:Foobar.jpg\"
src=\"//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg\"
data-file-width=\"1941\" data-file-height=\"220\" data-file-type=\"bitmap\"
height=\"14\" width=\"120\"/></a></span></div><div
class=\"gallerytext\">caption</div></li>\n</ul>");
+add("wt2html", "Gallery override link with absolute external link with
LanguageConverter", "<ul class=\"gallery mw-gallery-traditional\"
typeof=\"mw:Extension/gallery\" about=\"#mwt2\"
data-parsoid='{\"dsr\":[0,87,2,2]}'
data-mw='{\"name\":\"gallery\",\"attrs\":{},\"body\":{\"extsrc\":\"\\nFile:foobar.jpg|caption|alt=galleryalt|link=http://www.example.org\\n\"}}'>\n<li
class=\"gallerybox\" style=\"width: 155px;\"><div class=\"thumb\"
style=\"width: 150px; height: 150px;\"><span typeof=\"mw:Image\"><a
href=\"http://www.example.org\"><img alt=\"galleryalt\"
resource=\"./File:Foobar.jpg\"
src=\"//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg\"
data-file-width=\"1941\" data-file-height=\"220\" data-file-type=\"bitmap\"
height=\"14\" width=\"120\"/></a></span></div><div
class=\"gallerytext\">caption</div></li>\n</ul>");
add("wt2html", "Illegal character references (T106578)", "<dl
data-parsoid='{\"dsr\":[0,167,0,0]}'><dt data-parsoid='{\"dsr\":[0,6,1,0]}'>
Null</dt><dd data-parsoid='{\"stx\":\"row\",\"dsr\":[6,13,1,0]}'> <span
typeof=\"mw:Entity\"
data-parsoid='{\"src\":\"&#00;\",\"srcContent\":\"�\",\"dsr\":[8,13,null,null]}'>�</span></dd>\n<dt
data-parsoid='{\"dsr\":[14,18,1,0]}'> FF</dt><dd
data-parsoid='{\"stx\":\"row\",\"dsr\":[18,25,1,0]}'> <span
typeof=\"mw:Entity\"
data-parsoid='{\"src\":\"&#xC;\",\"srcContent\":\"\\f\",\"dsr\":[20,25,null,null]}'>\f</span></dd>\n<dt
data-parsoid='{\"dsr\":[26,30,1,0]}'> CR</dt><dd
data-parsoid='{\"stx\":\"row\",\"dsr\":[30,37,1,0]}'> <span
typeof=\"mw:Entity\"
data-parsoid='{\"src\":\"&#xD;\",\"srcContent\":\"\\r\",\"dsr\":[32,37,null,null]}'>\r</span></dd>\n<dt
data-parsoid='{\"dsr\":[38,53,1,0]}'> Control (low)</dt><dd
data-parsoid='{\"stx\":\"row\",\"dsr\":[53,59,1,0]}'> <span
typeof=\"mw:Entity\"
data-parsoid='{\"src\":\"&#8;\",\"srcContent\":\"\\b\",\"dsr\":[55,59,null,null]}'>\b</span></dd>\n<dt
data-parsoid='{\"dsr\":[60,76,1,0]}'> Control (high)</dt><dd
data-parsoid='{\"stx\":\"row\",\"dsr\":[76,91,1,0]}'> <span
typeof=\"mw:Entity\"
data-parsoid='{\"src\":\"&#x7F;\",\"srcContent\":\"\",\"dsr\":[78,84,null,null]}'></span>
<span typeof=\"mw:Entity\"
data-parsoid='{\"src\":\"&#x9F;\",\"srcContent\":\"Ÿ\",\"dsr\":[85,91,null,null]}'>Ÿ</span></dd>\n<dt
data-parsoid='{\"dsr\":[92,103,1,0]}'> Surrogate</dt><dd
data-parsoid='{\"stx\":\"row\",\"dsr\":[103,121,1,0]}'> <span
typeof=\"mw:Entity\"
data-parsoid='{\"src\":\"&#xD83D;\",\"srcContent\":\"�\",\"dsr\":[105,113,null,null]}'>�</span><span
typeof=\"mw:Entity\"
data-parsoid='{\"src\":\"&#xDCA9;\",\"srcContent\":\"�\",\"dsr\":[113,121,null,null]}'>�</span></dd>\n<dt
data-parsoid='{\"dsr\":[122,156,1,0]}'> This is an okay astral
character</dt><dd data-parsoid='{\"stx\":\"row\",\"dsr\":[156,167,1,0]}'> <span
typeof=\"mw:Entity\"
data-parsoid='{\"src\":\"&#x1F4A9;\",\"srcContent\":\"💩\",\"dsr\":[158,167,null,null]}'>💩</span></dd></dl>");
add("wt2html", "Centre-aligned image", "<figure class=\"mw-default-size
mw-halign-center\" typeof=\"mw:Image\"
data-parsoid='{\"optList\":[{\"ck\":\"center\",\"ak\":\"centre\"}],\"dsr\":[0,27,2,2]}'><a
href=\"./File:Foobar.jpg\"
data-parsoid='{\"a\":{\"href\":\"./File:Foobar.jpg\"},\"sa\":{\"href\":\"Image:foobar.jpg\"},\"dsr\":[2,25,null,null]}'><img
resource=\"./File:Foobar.jpg\" src=\"//example.com/images/3/3a/Foobar.jpg\"
data-file-width=\"1941\" data-file-height=\"220\" data-file-type=\"bitmap\"
height=\"220\" width=\"1941\"
data-parsoid='{\"a\":{\"resource\":\"./File:Foobar.jpg\",\"height\":\"220\",\"width\":\"1941\"},\"sa\":{\"resource\":\"Image:foobar.jpg\"}}'/></a></figure>");
add("wt2html", "None-aligned image", "<figure class=\"mw-default-size
mw-halign-none\" typeof=\"mw:Image\"
data-parsoid='{\"optList\":[{\"ck\":\"none\",\"ak\":\"none\"}],\"dsr\":[0,25,2,2]}'><a
href=\"./File:Foobar.jpg\"
data-parsoid='{\"a\":{\"href\":\"./File:Foobar.jpg\"},\"sa\":{\"href\":\"Image:foobar.jpg\"},\"dsr\":[2,23,null,null]}'><img
resource=\"./File:Foobar.jpg\" src=\"//example.com/images/3/3a/Foobar.jpg\"
data-file-width=\"1941\" data-file-height=\"220\" data-file-type=\"bitmap\"
height=\"220\" width=\"1941\"
data-parsoid='{\"a\":{\"resource\":\"./File:Foobar.jpg\",\"height\":\"220\",\"width\":\"1941\"},\"sa\":{\"resource\":\"Image:foobar.jpg\"}}'/></a></figure>");
diff --git a/tests/parserTests.txt b/tests/parserTests.txt
index ca8d7b1..fce7df6 100644
--- a/tests/parserTests.txt
+++ b/tests/parserTests.txt
@@ -19959,7 +19959,7 @@
!! html/parsoid
<ul class="gallery mw-gallery-traditional" type="123"
typeof="mw:Extension/gallery" about="#mwt2"
data-mw='{"name":"gallery","attrs":{"type":"123","summary":"345"},"body":{"extsrc":"\nFile:File:Foobar.jpg\n"}}'>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span style="vertical-align: middle; display:
inline-block;">File:File:Foobar.jpg</span></div><div
class="gallerytext"></div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span>File:File:Foobar.jpg</span></div><div
class="gallerytext"></div></li>
</ul>
!! end
@@ -20022,12 +20022,12 @@
!! html/parsoid
<ul class="gallery mw-gallery-traditional" typeof="mw:Extension/gallery"
about="#mwt3" data-mw='{"name":"gallery","attrs":{},"body":{}}'>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span style="vertical-align: middle; display:
inline-block;">image1.png </span></div><div class="gallerytext"></div></li>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span style="vertical-align: middle; display:
inline-block;">image2.gif</span></div><div class="gallerytext"></div></li>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span style="vertical-align: middle; display:
inline-block;">image3</span></div><div class="gallerytext"></div></li>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span style="vertical-align: middle; display:
inline-block;">image4 </span></div><div class="gallerytext"></div></li>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span style="vertical-align: middle; display:
inline-block;"> image5.svg</span></div><div class="gallerytext"> <a
rel="mw:ExtLink" href="http://///////">http://///////</a></div></li>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span style="vertical-align: middle; display:
inline-block;">* image6</span></div><div class="gallerytext"></div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span>image1.png </span></div><div
class="gallerytext"></div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span>image2.gif</span></div><div
class="gallerytext"></div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span>image3</span></div><div
class="gallerytext"></div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span>image4 </span></div><div
class="gallerytext"></div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span> image5.svg</span></div><div class="gallerytext">
<a rel="mw:ExtLink" href="http://///////">http://///////</a></div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span>* image6</span></div><div
class="gallerytext"></div></li>
</ul>
!! end
@@ -20085,11 +20085,11 @@
!! html/parsoid
<ul class="gallery mw-gallery-traditional" style="max-width: 226px; _width:
226px;" typeof="mw:Extension/gallery" about="#mwt3"
data-mw='{"name":"gallery","attrs":{"widths":"70px","heights":"40px","perrow":"2"},"body":{}}'>
<li class="gallerycaption">Foo <a rel="mw:WikiLink" href="./Main_Page"
title="Main Page">Main Page</a></li>
-<li class="gallerybox" style="width: 105px;"><div class="thumb" style="width:
100px; height: 70px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span style="vertical-align: middle; display:
inline-block;">File:Nonexistent.jpg</span></div><div
class="gallerytext">caption</div></li>
-<li class="gallerybox" style="width: 105px;"><div class="thumb" style="width:
100px; height: 70px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span style="vertical-align: middle; display:
inline-block;">File:Nonexistent.jpg</span></div><div
class="gallerytext"></div></li>
-<li class="gallerybox" style="width: 105px;"><div class="thumb" style="width:
100px; height: 70px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span typeof="mw:Image" style="vertical-align:
middle; display: inline-block;"><a href="./File:Foobar.jpg"><img
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="8" width="70"/></a></span></div><div class="gallerytext">some
<b>caption</b> <a rel="mw:WikiLink" href="./Main_Page" title="Main Page">Main
Page</a></div></li>
-<li class="gallerybox" style="width: 105px;"><div class="thumb" style="width:
100px; height: 70px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span typeof="mw:Image" style="vertical-align:
middle; display: inline-block;"><a href="./File:Foobar.jpg"><img
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="8" width="70"/></a></span></div><div class="gallerytext"></div></li>
-<li class="gallerybox" style="width: 105px;"><div class="thumb" style="width:
100px; height: 70px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span typeof="mw:Image" style="vertical-align:
middle; display: inline-block;"><a href="./File:Foobar.jpg"><img alt="This is a
foo-bar." resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="8" width="70"/></a></span></div><div
class="gallerytext">blabla.</div></li>
+<li class="gallerybox" style="width: 105px;"><div class="thumb" style="width:
100px; height: 70px;"><span>File:Nonexistent.jpg</span></div><div
class="gallerytext">caption</div></li>
+<li class="gallerybox" style="width: 105px;"><div class="thumb" style="width:
100px; height: 70px;"><span>File:Nonexistent.jpg</span></div><div
class="gallerytext"></div></li>
+<li class="gallerybox" style="width: 105px;"><div class="thumb" style="width:
100px; height: 70px;"><span typeof="mw:Image"><a href="./File:Foobar.jpg"><img
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="8" width="70"/></a></span></div><div class="gallerytext">some
<b>caption</b> <a rel="mw:WikiLink" href="./Main_Page" title="Main Page">Main
Page</a></div></li>
+<li class="gallerybox" style="width: 105px;"><div class="thumb" style="width:
100px; height: 70px;"><span typeof="mw:Image"><a href="./File:Foobar.jpg"><img
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="8" width="70"/></a></span></div><div class="gallerytext"></div></li>
+<li class="gallerybox" style="width: 105px;"><div class="thumb" style="width:
100px; height: 70px;"><span typeof="mw:Image"><a href="./File:Foobar.jpg"><img
alt="This is a foo-bar." resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="8" width="70"/></a></span></div><div
class="gallerytext">blabla.</div></li>
</ul>
!! end
@@ -20146,11 +20146,11 @@
!! html/parsoid
<ul class="gallery mw-gallery-traditional" style="max-width: 226px; _width:
226px;" typeof="mw:Extension/gallery" about="#mwt3" data-parsoid='{}'
data-mw='{"name":"gallery","attrs":{"widths":"70px","heights":"40px","perrow":"2","caption":"Foo
[[Main
Page]]"},"body":{"extsrc":"\nFile:Nonexistent.jpg|caption\nFile:Nonexistent.jpg\nimage:foobar.jpg|some
'''caption''' [[Main
Page]]\nimage:foobar.jpg\nimage:foobar.jpg|Blabla|alt=This is a
foo-bar.|blabla.\n"}}'>
<li class="gallerycaption">Foo <a rel="mw:WikiLink" href="./Main_Page"
title="Main Page">Main Page</a></li>
-<li class="gallerybox" style="width: 105px;"><div class="thumb" style="width:
100px; height: 70px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span style="vertical-align: middle; display:
inline-block;">File:Nonexistent.jpg</span></div><div
class="gallerytext">caption</div></li>
-<li class="gallerybox" style="width: 105px;"><div class="thumb" style="width:
100px; height: 70px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span style="vertical-align: middle; display:
inline-block;">File:Nonexistent.jpg</span></div><div
class="gallerytext"></div></li>
-<li class="gallerybox" style="width: 105px;"><div class="thumb" style="width:
100px; height: 70px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span typeof="mw:Image" style="vertical-align:
middle; display: inline-block;"><a href="./File:Foobar.jpg"><img
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="8" width="70"/></a></span></div><div class="gallerytext">some
<b>caption</b> <a rel="mw:WikiLink" href="./Main_Page" title="Main Page">Main
Page</a></div></li>
-<li class="gallerybox" style="width: 105px;"><div class="thumb" style="width:
100px; height: 70px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span typeof="mw:Image" style="vertical-align:
middle; display: inline-block;"><a href="./File:Foobar.jpg"><img
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="8" width="70"/></a></span></div><div class="gallerytext"></div></li>
-<li class="gallerybox" style="width: 105px;"><div class="thumb" style="width:
100px; height: 70px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span typeof="mw:Image" style="vertical-align:
middle; display: inline-block;"><a href="./File:Foobar.jpg"><img alt="This is a
foo-bar." resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="8" width="70"/></a></span></div><div
class="gallerytext">blabla.</div></li>
+<li class="gallerybox" style="width: 105px;"><div class="thumb" style="width:
100px; height: 70px;"><span>File:Nonexistent.jpg</span></div><div
class="gallerytext">caption</div></li>
+<li class="gallerybox" style="width: 105px;"><div class="thumb" style="width:
100px; height: 70px;"><span>File:Nonexistent.jpg</span></div><div
class="gallerytext"></div></li>
+<li class="gallerybox" style="width: 105px;"><div class="thumb" style="width:
100px; height: 70px;"><span typeof="mw:Image"><a href="./File:Foobar.jpg"><img
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="8" width="70"/></a></span></div><div class="gallerytext">some
<b>caption</b> <a rel="mw:WikiLink" href="./Main_Page" title="Main Page">Main
Page</a></div></li>
+<li class="gallerybox" style="width: 105px;"><div class="thumb" style="width:
100px; height: 70px;"><span typeof="mw:Image"><a href="./File:Foobar.jpg"><img
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="8" width="70"/></a></span></div><div class="gallerytext"></div></li>
+<li class="gallerybox" style="width: 105px;"><div class="thumb" style="width:
100px; height: 70px;"><span typeof="mw:Image"><a href="./File:Foobar.jpg"><img
alt="This is a foo-bar." resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/70px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="8" width="70"/></a></span></div><div
class="gallerytext">blabla.</div></li>
</ul>
!! end
@@ -20190,9 +20190,9 @@
!! html/parsoid
<ul class="gallery mw-gallery-traditional" typeof="mw:Extension/gallery"
about="#mwt2" data-mw='{"name":"gallery","attrs":{},"body":{}}'>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span typeof="mw:Image" style="vertical-align:
middle; display: inline-block;"><a href="./Main_Page"><img
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div class="gallerytext"></div></li>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span typeof="mw:Image" style="vertical-align:
middle; display: inline-block;"><a href="./Main_Page#section"><img
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div class="gallerytext"></div></li>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span typeof="mw:Image" style="vertical-align:
middle; display: inline-block;"><a href="./Main_Page#section"><img
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div
class="gallerytext">caption</div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span typeof="mw:Image"><a href="./Main_Page"><img
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div class="gallerytext"></div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span typeof="mw:Image"><a
href="./Main_Page#section"><img resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div class="gallerytext"></div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span typeof="mw:Image"><a
href="./Main_Page#section"><img resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div
class="gallerytext">caption</div></li>
</ul>
!! end
@@ -20222,7 +20222,7 @@
!! html/parsoid
<ul class="gallery mw-gallery-traditional" typeof="mw:Extension/gallery"
about="#mwt6" data-mw='{"name":"gallery","attrs":{},"body":{}}'>
<li class="gallerycaption"><span about="#mwt3" typeof="mw:Transclusion"
data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"hi"}},"i":0}}]}'>hi</span></li>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span typeof="mw:Image" style="vertical-align:
middle; display: inline-block;"><a href="./File:Foobar.jpg"><img
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div class="gallerytext"><span
about="#mwt5" typeof="mw:Transclusion"
data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"ho"}},"i":0}}]}'>ho</span></div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span typeof="mw:Image"><a href="./File:Foobar.jpg"><img
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div class="gallerytext"><span
about="#mwt5" typeof="mw:Transclusion"
data-mw='{"parts":[{"template":{"target":{"wt":"echo","href":"./Template:Echo"},"params":{"1":{"wt":"ho"}},"i":0}}]}'>ho</span></div></li>
</ul>
!! end
@@ -20257,8 +20257,8 @@
!! html/parsoid
<ul class="gallery mw-gallery-traditional" typeof="mw:Extension/gallery"
about="#mwt6" data-mw='{"name":"gallery","attrs":{},"body":{}}'>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span typeof="mw:Image" style="vertical-align:
middle; display: inline-block;"><a href="./File:Foobar.jpg"><img
alt="galleryalt" resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div class="gallerytext"><span
typeof="mw:Image" data-mw='{"caption":"desc"}'><a href="./File:Foobar.jpg"><img
alt="inneralt" resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/20px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="2" width="20"/></a></span></div></li>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span typeof="mw:Image" style="vertical-align:
middle; display: inline-block;"><a href="./File:Foobar.jpg"><img
alt="galleryalt" resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div class="gallerytext"><span
about="#mwt4" typeof="mw:Transclusion"
data-mw='{"parts":[{"template":{"target":{"wt":"Test","href":"./Template:Test"},"params":{"1":{"wt":"unamedParam"},"alt":{"wt":"param"}},"i":0}}]}'>This
is a test template</span></div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span typeof="mw:Image"><a href="./File:Foobar.jpg"><img
alt="galleryalt" resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div class="gallerytext"><span
typeof="mw:Image" data-mw='{"caption":"desc"}'><a href="./File:Foobar.jpg"><img
alt="inneralt" resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/20px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="2" width="20"/></a></span></div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span typeof="mw:Image"><a href="./File:Foobar.jpg"><img
alt="galleryalt" resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div class="gallerytext"><span
about="#mwt4" typeof="mw:Transclusion"
data-mw='{"parts":[{"template":{"target":{"wt":"Test","href":"./Template:Test"},"params":{"1":{"wt":"unamedParam"},"alt":{"wt":"param"}},"i":0}}]}'>This
is a test template</span></div></li>
</ul>
!! end
@@ -20311,10 +20311,10 @@
!! html/parsoid
<ul class="gallery mw-gallery-traditional" typeof="mw:Extension/gallery"
about="#mwt3"
data-mw='{"name":"gallery","attrs":{"showfilename":""},"body":{}}'>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span style="vertical-align: middle; display:
inline-block;">File:Nonexistent.jpg</span></div><div class="gallerytext"><a
href="./File:Nonexistent.jpg" class="galleryfilename galleryfilename-truncate"
title="File:Nonexistent.jpg">File:Nonexistent.jpg</a>caption</div></li>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span style="vertical-align: middle; display:
inline-block;">File:Nonexistent.jpg</span></div><div class="gallerytext"><a
href="./File:Nonexistent.jpg" class="galleryfilename galleryfilename-truncate"
title="File:Nonexistent.jpg">File:Nonexistent.jpg</a></div></li>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span typeof="mw:Image" style="vertical-align:
middle; display: inline-block;"><a href="./File:Foobar.jpg"><img
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div class="gallerytext"><a
href="./File:Foobar.jpg" class="galleryfilename galleryfilename-truncate"
title="File:Foobar.jpg">File:Foobar.jpg</a>some <b>caption</b> <a
rel="mw:WikiLink" href="./Main_Page" title="Main Page">Main Page</a></div></li>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span typeof="mw:Image" style="vertical-align:
middle; display: inline-block;"><a href="./File:Foobar.jpg"><img
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div class="gallerytext"><a
href="./File:Foobar.jpg" class="galleryfilename galleryfilename-truncate"
title="File:Foobar.jpg">File:Foobar.jpg</a></div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span>File:Nonexistent.jpg</span></div><div
class="gallerytext"><a href="./File:Nonexistent.jpg" class="galleryfilename
galleryfilename-truncate"
title="File:Nonexistent.jpg">File:Nonexistent.jpg</a>caption</div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span>File:Nonexistent.jpg</span></div><div
class="gallerytext"><a href="./File:Nonexistent.jpg" class="galleryfilename
galleryfilename-truncate"
title="File:Nonexistent.jpg">File:Nonexistent.jpg</a></div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span typeof="mw:Image"><a href="./File:Foobar.jpg"><img
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div class="gallerytext"><a
href="./File:Foobar.jpg" class="galleryfilename galleryfilename-truncate"
title="File:Foobar.jpg">File:Foobar.jpg</a>some <b>caption</b> <a
rel="mw:WikiLink" href="./Main_Page" title="Main Page">Main Page</a></div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span typeof="mw:Image"><a href="./File:Foobar.jpg"><img
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div class="gallerytext"><a
href="./File:Foobar.jpg" class="galleryfilename galleryfilename-truncate"
title="File:Foobar.jpg">File:Foobar.jpg</a></div></li>
</ul>
!! end
@@ -20359,10 +20359,10 @@
!! html/parsoid
<ul class="gallery mw-gallery-traditional" typeof="mw:Extension/gallery"
about="#mwt2" data-mw='{"name":"gallery","attrs":{},"body":{}}'>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span style="vertical-align: middle; display:
inline-block;">File:Nonexistent.jpg</span></div><div
class="gallerytext"></div></li>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span style="vertical-align: middle; display:
inline-block;">Nonexistent.jpg</span></div><div class="gallerytext"></div></li>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span typeof="mw:Image" style="vertical-align:
middle; display: inline-block;"><a href="./File:Foobar.jpg"><img
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div class="gallerytext"></div></li>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span typeof="mw:Image" style="vertical-align:
middle; display: inline-block;"><a href="./File:Foobar.jpg"><img
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div class="gallerytext"></div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span>File:Nonexistent.jpg</span></div><div
class="gallerytext"></div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span>Nonexistent.jpg</span></div><div
class="gallerytext"></div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span typeof="mw:Image"><a href="./File:Foobar.jpg"><img
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div class="gallerytext"></div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span typeof="mw:Image"><a href="./File:Foobar.jpg"><img
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div class="gallerytext"></div></li>
</ul>
!! end
@@ -20387,7 +20387,7 @@
!! html/parsoid
<ul class="gallery mw-gallery-traditional" typeof="mw:Extension/gallery"
about="#mwt2" data-parsoid='{"dsr":[0,70,2,2]}'
data-mw='{"name":"gallery","attrs":{},"body":{}}'>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span typeof="mw:Image" style="vertical-align:
middle; display: inline-block;"><a href="./InterWikiLink"><img alt="galleryalt"
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div class="gallerytext"></div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span typeof="mw:Image"><a href="./InterWikiLink"><img
alt="galleryalt" resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div class="gallerytext"></div></li>
</ul>
!! end
@@ -20412,7 +20412,7 @@
!! html/parsoid
<ul class="gallery mw-gallery-traditional" typeof="mw:Extension/gallery"
about="#mwt2" data-mw='{"name":"gallery","attrs":{},"body":{}}'>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span typeof="mw:Image" style="vertical-align:
middle; display: inline-block;"><a href="http://www.example.org"><img
alt="galleryalt" resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div class="gallerytext"></div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span typeof="mw:Image"><a
href="http://www.example.org"><img alt="galleryalt"
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div class="gallerytext"></div></li>
</ul>
!! end
@@ -20459,7 +20459,7 @@
!! html/parsoid
<ul class="gallery mw-gallery-traditional" typeof="mw:Extension/gallery"
about="#mwt2" data-mw='{"name":"gallery","attrs":{},"body":{}}'>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span typeof="mw:Image" style="vertical-align:
middle; display: inline-block;"><a
href="./%22_onclick=%22alert('malicious_javascript_code!');"><img
alt="galleryalt" resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div class="gallerytext"></div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span typeof="mw:Image"><a
href="./%22_onclick=%22alert('malicious_javascript_code!');"><img
alt="galleryalt" resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div class="gallerytext"></div></li>
</ul>
!! end
@@ -20486,7 +20486,7 @@
!! html/parsoid
<ul class="gallery mw-gallery-traditional" typeof="mw:Extension/gallery"
about="#mwt2" data-mw='{"name":"gallery","attrs":{},"body":{}}'>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span typeof="mw:Image" style="vertical-align:
middle; display: inline-block;"><a href="./File:Foobar.jpg"><img
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div
class="gallerytext">link=<</div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span typeof="mw:Image"><a href="./File:Foobar.jpg"><img
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div
class="gallerytext">link=<</div></li>
</ul>
!! end
@@ -20500,7 +20500,7 @@
!! html/parsoid
<ul class="gallery mw-gallery-traditional" typeof="mw:Extension/gallery"
about="#mwt2" data-mw='{"name":"gallery","body":{}}'>
<li class="gallerycaption">123</li>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span style="vertical-align: middle; display:
inline-block;">File:Test.png</span></div><div class="gallerytext"></div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span>File:Test.png</span></div><div
class="gallerytext"></div></li>
</ul>
!! wikitext
<gallery caption="123">
@@ -20529,7 +20529,7 @@
!! html/parsoid
<ul class="gallery mw-gallery-traditional center" style="text-align: center;"
typeof="mw:Extension/gallery" about="#mwt2"
data-mw='{"name":"gallery","attrs":{"class":"center","style":"text-align:
center;"},"body":{}}'>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span typeof="mw:Image" style="vertical-align:
middle; display: inline-block;"><a href="./File:Foobar.jpg"><img
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div class="gallerytext"></div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span typeof="mw:Image"><a href="./File:Foobar.jpg"><img
resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div><div class="gallerytext"></div></li>
</ul>
!! end
@@ -22322,11 +22322,11 @@
!! html/parsoid
<ul class="gallery mw-gallery-traditional" typeof="mw:Extension/gallery"
data-mw='{"name":"gallery","attrs":{},"body":{"extsrc":"\nFile:foobar.jpg|[[File:foobar.jpg|20px|desc|alt=-{R|foo}-|-{R|bar}-]]|alt=-{R|bat}-\nFile:foobar.jpg|{{Test|unamedParam|alt=-{R|param}-}}|alt=galleryalt\n"}}'>
<li class="gallerybox">
-<div class="thumb"><span></span><span typeof="mw:Image"><a
href="./File:Foobar.jpg"><img alt="" resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div>
+<div class="thumb"><span typeof="mw:Image"><a href="./File:Foobar.jpg"><img
alt="" resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div>
<div class="gallerytext"><span typeof="mw:Image" data-mw='{"caption":"<span
typeof=\"mw:LanguageVariant\"
data-mw-variant='{\"disabled\":{\"t\":\"bar\"}}'
data-parsoid='{\"fl\":[\"R\"],\"dsr\":[68,77,null,2]}'></span>"}'><a
href="./File:Foobar.jpg"><img alt="" resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/20px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="2" width="20"/></a></span></div>
</li>
<li class="gallerybox">
-<div class="thumb"><span></span><span typeof="mw:Image"><a
href="./File:Foobar.jpg"><img alt="galleryalt" resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div>
+<div class="thumb"><span typeof="mw:Image"><a href="./File:Foobar.jpg"><img
alt="galleryalt" resource="./File:Foobar.jpg"
src="//example.com/images/thumb/3/3a/Foobar.jpg/120px-Foobar.jpg"
data-file-width="1941" data-file-height="220" data-file-type="bitmap"
height="14" width="120"/></a></span></div>
<div class="gallerytext"><span typeof="mw:Transclusion"
data-mw='{"parts":[{"template":{"target":{"wt":"Test","href":"./Template:Test"},"params":{"1":{"wt":"unamedParam"},"alt":{"wt":"-{R|param}-"}},"i":0}}]}'>This
is a test template</span></div>
</li>
</ul>
diff --git a/tests/timedMediaHandlerParserTests.txt
b/tests/timedMediaHandlerParserTests.txt
index 2c4bda7..64e4d1c 100644
--- a/tests/timedMediaHandlerParserTests.txt
+++ b/tests/timedMediaHandlerParserTests.txt
@@ -53,7 +53,7 @@
!! html/parsoid
<ul class="gallery mw-gallery-traditional" typeof="mw:Extension/gallery"
about="#mwt2" data-mw='{"name":"gallery","attrs":{},"body":{}}'>
-<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span style="display: inline-block; height: 100%;
vertical-align: middle;"></span><span typeof="mw:Video" style="vertical-align:
middle; display: inline-block;"><span><video
poster="//example.com/images/thumb/0/00/Video.ogv/120px-Video.ogv.jpg"
controls="" preload="none" height="90" width="120"
resource="./File:Video.ogv"><source
src="http://example.com/images/0/00/Video.ogv" type="application/ogg"
data-file-width="320" data-file-height="240"/></video></span></span></div><div
class="gallerytext"></div></li>
+<li class="gallerybox" style="width: 155px;"><div class="thumb" style="width:
150px; height: 150px;"><span typeof="mw:Video"><span><video
poster="//example.com/images/thumb/0/00/Video.ogv/120px-Video.ogv.jpg"
controls="" preload="none" height="90" width="120"
resource="./File:Video.ogv"><source
src="http://example.com/images/0/00/Video.ogv" type="application/ogg"
data-file-width="320" data-file-height="240"/></video></span></span></div><div
class="gallerytext"></div></li>
</ul>
!! end
--
To view, visit https://gerrit.wikimedia.org/r/372422
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: Ief55da2cbe29096a78a7ba6584e6a6f3a5a92a04
Gerrit-PatchSet: 4
Gerrit-Project: mediawiki/services/parsoid
Gerrit-Branch: master
Gerrit-Owner: Arlolra <[email protected]>
Gerrit-Reviewer: Arlolra <[email protected]>
Gerrit-Reviewer: Subramanya Sastry <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits