X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=tests%2Fparser%2FparserTests.txt;h=82d195a653992f31b088aa2e2a96ceede3af079e;hp=e8ccd9da8441a66bb92d298e457bc2ed1a45297c;hb=b936d263ef486da6ecfe9d45c6aadc176e7db15c;hpb=4fad94948359ab67e312355534977138754c123b diff --git a/tests/parser/parserTests.txt b/tests/parser/parserTests.txt index e8ccd9da84..82d195a653 100644 --- a/tests/parser/parserTests.txt +++ b/tests/parser/parserTests.txt @@ -28364,3 +28364,166 @@ wgRawHtml=1 !! end + +!! test +Decoding of HTML entities in headings and links for IDs and link fragments (T103714) +!! wikitext +== A&B&C&D&E == +[[#A&B&C&D&E]] +!! html/php +
#Foo bar #foo Bar #ТеÑÑ #ÑеÑÑ #Hey < # " > % : ' +
%F0%9F%92%A9 +
+!! end + +!! test +HTML5 ids: legacy with a fallback to modern +!! config +wgFragmentMode=[ 'legacy', 'html5' ] +!! wikitext +== Foo bar == + +== foo Bar == + +== ТеÑÑ == + +== ТеÑÑ == + +== ÑеÑÑ == + +== Hey < # " > % : ' == +[[#Foo bar]] [[#foo Bar]] [[#ТеÑÑ]] [[#ÑеÑÑ]] [[#Hey < # " > % : ']] + +{{anchorencode:ð©}} + + +[[#å¤é ]] [[#%E5%95%A4%E9%85%92]] + +!! html/php +#Foo bar #foo Bar #ТеÑÑ #ÑеÑÑ #Hey < # " > % : ' +
.F0.9F.92.A9 +
+!! end + +!! test +HTML5 ids: no legacy +!! config +wgFragmentMode=[ 'html5' ] +!! wikitext +== Foo bar == + +== foo Bar == + +== ТеÑÑ == + +== ТеÑÑ == + +== ÑеÑÑ == + +== Hey < # " > % : ' == +[[#Foo bar]] [[#foo Bar]] [[#ТеÑÑ]] [[#ÑеÑÑ]] [[#Hey < # " > % : ']] + +{{anchorencode:ð©}} + + +[[#å¤é ]] [[#%E5%95%A4%E9%85%92]] + +!! html/php +#Foo bar #foo Bar #ТеÑÑ #ÑеÑÑ #Hey < # " > % : ' +
%F0%9F%92%A9 +
+!! end