https://bugzilla.wikimedia.org/show_bug.cgi?id=63642

            Bug ID: 63642
           Summary: Parsoid outputs <small> as child of <figure>
           Product: Parsoid
           Version: unspecified
          Hardware: All
                OS: All
            Status: NEW
          Severity: major
          Priority: Unprioritized
         Component: General
          Assignee: gwi...@wikimedia.org
          Reporter: roan.katt...@gmail.com
                CC: jforres...@wikimedia.org, ssas...@wikimedia.org
       Web browser: ---
   Mobile Platform: ---

On http://parsoid.wmflabs.org/enwiki/User:Tamravidhir?oldid=603142295 , I see
two images that look like:

<figure><small><a href="..."><img src="..." /></a><figcaption>Caption
text</figcaption></small></figure>

You can find them by opening that link in a browser and typing
document.querySelectorAll('figure>small') in a console, then clicking on the
result (Firebug) or right-clicking the result and choosing "Reveal in elements
panel" (Chrome).

Putting a <small> inside a <figure> tag but wrapped around a <figcaption> tag
is a violation of the image spec (in addition to just being insane), which
causes VisualEditor to get very confused and corrupt the image, which causes
Parsoid to output [[undefined|NaNxNaNpx|right|link=]], see
https://en.wikipedia.org/w/index.php?title=User:Tamravidhir&diff=603142575&oldid=603142295
. This is reminiscent of bug 62805 (NaNxNaNpx).

The wikitext that triggers this is fairly complicated, and I haven't been able
to isolate a test case locally. It seems to be something like:

* '''Text'''
<small>
[[File:Foo|right|200px|Caption]]

Text

[[File:Foo|right|200px|Caption]]
</small>
* '''Text'''
<small>
etc.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to