https://it.wikivoyage.org/wiki/Utente:Andyrom75
is rendered differently from
https://it.wikivoyage.org/w/index.php?title=Utente:Andyrom75&useparsoid=0
Chrome and Firefox (latest versions) provide the same result.
https://it.wikivoyage.org/wiki/Utente:Andyrom75
is rendered differently from
https://it.wikivoyage.org/w/index.php?title=Utente:Andyrom75&useparsoid=0
Chrome and Firefox (latest versions) provide the same result.
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| Bump wikimedia/parsoid to 0.23.0-a12 | mediawiki/vendor | master | +929 -492 | |
| Restore bullets before retokenizing expanded attrs | mediawiki/services/parsoid | master | +14 -0 |
Checking the rendered code, I've noticed that Parsoid eliminate the symbol "#" from the color definition.
In this way, the CSS rule become invalid.
This is the line WITHOUT Pasoid:
<div style="padding: 0.8em;border: 2px solid #777;background: #f8f8f8;color:black;text-align: left;margin: 0 0 1em;">
This is the line WITH Pasoid:
<div style="padding: 0.8em;border: 1px solid 777;background: f8f8f8;color:black;text-align: left;margin: 0 0 1em;" about="#mwt24" typeof="mw:ExpandedAttrs" id="mwIg" data-mw="{"attribs":[[{"txt":"style","html":"<span about=\"#mwt22\" typeof=\"mw:Transclusion\" data-parsoid='{\"pi\":[[{\"k\":\"color\",\"named\":true}]],\"dsr\":[1408,1431,null,null]}' data-mw='{\"parts\":[{\"template\":{\"target\":{\"wt\":\"SectionText\",\"href\":\"./Template:SectionText\"},\"params\":{\"color\":{\"wt\":\"4\"}},\"i\":0}}]}'>style=\"padding: 0.8em; border: 1px solid \n#777; background: \n#f8f8f8; color:black; text-align: left; margin: 0 0 1em; \"</span>"},{"html":""}]]}">
Since in 6 months I got no reply, I've changed completely the templates to solve the local issue, but I leave open the ticket to track it.
It looks like template expansion to something like,
style="padding: 0.8em; border: 1px solid #4d64cf; background: #f3faff; color:black; text-align: left; margin: 0 0 1em; "
which gets tokenized as a list item,
2-[peg] | ----> [{"type":"NlTk","dataParsoid":{"tsr":[42,43]}},{"type":"TagTk","name":"listItem","attribs":[{"k":"bullets","v":["#"],"srcOffsets":[43,43,43,44]}],"dataParsoid":{"tsr":[43,44]}},"4d64cf;"]and then the attribute expander is dropping the hash when stringifying the result.
Change #1225041 had a related patch set uploaded (by Arlolra; author: Arlolra):
[mediawiki/services/parsoid@master] Restore bullets before retokenizing expanded attrs
Change #1225041 merged by jenkins-bot:
[mediawiki/services/parsoid@master] Restore bullets before retokenizing expanded attrs
Change #1228553 had a related patch set uploaded (by Arlolra; author: Arlolra):
[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.23.0-a12
Change #1228553 merged by jenkins-bot:
[mediawiki/vendor@master] Bump wikimedia/parsoid to 0.23.0-a12