Closed Bug 383897 Opened 17 years ago Closed 17 years ago

SVG <use> tag does not allow external references

Categories

(Core :: SVG, defect)

x86
Windows Vista
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 269482

People

(Reporter: cfcohen77, Unassigned)

Details

User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9a6pre) Gecko/20070609 Minefield/3.0a6pre Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 6.0; en-US; rv:1.9a6pre) Gecko/20070609 Minefield/3.0a6pre The SVG <use> tag does not allow external links. I apologize if this issue has already been reported, or it's somehow a security that has been intentionally disabled, but several sources indicate that this should work correctly. I found a discussion on the SVG IRC channel that said "Yeah, Firefox doesn't support that." I'm not an XML expert, so I can't point the right standards indicating that this should work, but it looks to me like it should. The problem is best demonstrated best with these two SVG files (test1.svg and test2.svg in the reproduction section). Reproducible: Always Steps to Reproduce: test1.svg ---8<------8<------8<------8<------8<--- <?xml version="1.0"?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <defs> <rect id="myrect" x="50" y="50" width="100" height="100" fill="red"/> </defs> <use xlink:href="#myrect"/> </svg> ---8<------8<------8<------8<------8<--- test2.svg ---8<------8<------8<------8<------8<--- <?xml version="1.0"?> <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> <use xlink:href="test1.svg#myrect"/> </svg> ---8<------8<------8<------8<------8<--- Actual Results: test2.svg display an empty page. I've tried as many different formats for the href as I can think of, including full file paths, etc. and no external link formats (not beginning with #) seem to work. Expected Results: test1.svg and test2.svg should display the same results (a red square) if loaded from the same directory.
Status: UNCONFIRMED → RESOLVED
Closed: 17 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.