Resolve a URL while preserving the document URL for fragment-only references. This is needed when the base URL is a data URL because resolveURL("#id", data:...) intentionally returns just "#id".
Resolve a URL while preserving the document URL for fragment-only references. This is needed when the base URL is a data URL because resolveURL("#id", data:...) intentionally returns just "#id".