https://bugzilla.wikimedia.org/show_bug.cgi?id=49400
Web browser: ---
Bug ID: 49400
Summary: Handle templated image options containing pipes
Product: Parsoid
Version: unspecified
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: Unprioritized
Component: JS/token-stream transforms
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
Mobile Platform: ---
Some perverse templates such as {{Largethumb}} return a string with several
options separated by pipes ("thumb|<number>px"). In the PHP parser those pipes
are then picked up by the link regexp, so result in the regular image options.
In our attribute handling we expand attributes separately, so can end up with
strings like the above in a single attribute value. In [[:de:Portal:Thüringen]]
for example that is the case for the href attribute, which then caused a crash
after retrieving image properties.
We will likely need to handle expanded attributes containing a pipe properly by
re-parsing their string representation. This will be difficult to map onto our
current template-affected attribute handling.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l