]>

(A) Testing '#' in text within a data URI

Here, the data URI includes the text "#1".
"Correct" result is a truncated document.
Author's expected result is "My sports team is #1!"

HTML XHTML SVG
<iframe>
<img> (not applicable) (not applicable)

(B) Testing '#' in markup within a data URI

Here, the data URI includes "<use xlink:href='#greenRect'/>"
"Correct" result is a truncated document.
Author's expected result is a fully-green rect.

SVG
<iframe>
<img>

(C) Testing '#' in a fragment ID appended to a data URI

Here, the data URI ends with "#target" (which targets an internal element as an initial scroll-target).
Author's expected result (& the correct result) is a fully-green rect, with scrollbars.

HTML XHTML
<iframe>

(D) Testing <svg:use> directly referencing "data:[...]#target"

Here, we just have directly-embedded SVG content (no iframe/img involved), including "<use xlink:href='data:[...]#target'>"
Author's expected result (& the correct result) is a fully-green rect.