!! version 2
!! test
Legacy fragment encoding
!! config
wgFragmentMode=["legacy"]
!! wikitext
[A]
[B]
[C]
[D]
[E]
[F]
!! html/php
[1]
[2]
[3]
[4]
[5]
[6]
!! end
!! test
FIXME: HTML5 fragment encoding
!! config
wgFragmentMode=["html5"]
!! wikitext
[A]
[B]
[C]
[D]
[E]
[F]
!! html/php
[1]
[2]
[3]
[4]
[5]
[6]
!! end
!! test
Double URL encoding in legacy mode
!! config
wgFragmentMode=["legacy"]
!! wikitext
[A]
!! html/php
[g%25%32%30g 1]
!! end
!! test
Double URL encoding in HTML5 mode
!! config
wgFragmentMode=["html5"]
!! wikitext
[A]
!! html/php
[g%25%32%30g 1]
!! end
!! test
Multiple, partly encoded spaces in legacy mode
!! config
wgFragmentMode=["legacy"]
!! wikitext
[A]
!! html/php
[b_ %20b 1]
!! end
!! test
Multiple, partly encoded spaces in HTML5 mode
!! config
wgFragmentMode=["html5"]
!! wikitext
[A]
!! html/php
[b_ %20b 1]
!! end