Fix href parsing in transclusion nodes when on alternative (e.g. mobile) domains/paths

Use model HTMLDocument when parsing transclusion nodes and their link hrefs

As well as mobile, this also covers the issue I found in /w/index.php?veaction=edit

See also T76374

Bug: T76379
Change-Id: I07c9ba0adbcee32f7eb2ca280d3a1d46e963d28f
Merge "Fix href parsing in transclusion nodes when on alternative (e.g. mobile) domains/paths"