Replace use of parseHTML in fixIntraDocumentReferences()
More parseHTML removal.
Properly fill attribute spans for parametrized attrs.