Page MenuHomePhabricator

nowiki is not respected when placing the nowiki-wrapped conversion tag in the title attribute of the html
Open, Needs TriagePublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • place the nowiki-wrapped conversion tag in the title attribute of the html

input wikitext:

<span title="<nowiki>-{H|zh: zh; zh-hans: zh-hans; zh-hant: zh-hant; zh-cn: zh-cn; zh-my: zh-my; zh-sg: zh-sg; zh-tw: zh-tw; zh-hk: zh-hk; zh-mo: zh-mo; }-</nowiki>"><nowiki>-{H|zh: zh; zh-hans: zh-hans; zh-hant: zh-hant; zh-cn: zh-cn; zh-my: zh-my; zh-sg: zh-sg; zh-tw: zh-tw; zh-hk: zh-hk; zh-mo: zh-mo; }-</nowiki></span>
zh

What happens?:
nowiki is not respected and the conversion proceeds as usual
example: https://zh.wikipedia.beta.wmflabs.org/w/index.php?variant=zh-tw&oldid=24023
output html:

<span title="">-&#123;H|zh: zh; zh-hans: zh-hans; zh-hant: zh-hant; zh-cn: zh-cn; zh-my: zh-my; zh-sg: zh-sg; zh-tw: zh-tw; zh-hk: zh-hk; zh-mo: zh-mo; &#125;-</span>
zh-tw

What should have happened instead?:
conversions within nowiki are suppressed
output html:

<span title="-&#123;H|zh: zh; zh-hans: zh-hans; zh-hant: zh-hant; zh-cn: zh-cn; zh-my: zh-my; zh-sg: zh-sg; zh-tw: zh-tw; zh-hk: zh-hk; zh-mo: zh-mo; &#125;-">-&#123;H|zh: zh; zh-hans: zh-hans; zh-hant: zh-hant; zh-cn: zh-cn; zh-my: zh-my; zh-sg: zh-sg; zh-tw: zh-tw; zh-hk: zh-hk; zh-mo: zh-mo; &#125;-</span>
zh