<use xlink:href> should not respect <base> for local references

Fixed Issue #11490803

Details

Author
Anthony R.
Created
Apr 3, 2017
Privacy
This issue is public.
Found in
  • Microsoft Edge
  • Firefox
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

Steps to reproduce

Open the testcase

Actual result

Logo is invisible

Expected result

Logo is displayed


Works as expected: Chrome, Safari, IE 10 and 11
Works as actual: Firefox, Edge

A lot of people are running into this issue and fixing by using absolute references: https://gist.github.com/leonderijke/c5cf7c5b2e424c0061d2

I think <base> should not be used for local references aka #foo.

Firefox bug 1352979

Attachments

0 attachments

    Comments and activity

    • Note that Edge and Firefox are correct per the SVG specification as currently written.

    • Microsoft Edge Team

      Changed Assigned To to “Steven K.”

    • Forgot to link to a testcase

    • Found the exact change of the spec for this:
      “As defined in CSS Values and Units, a fragment-only URL in a style property must be treated as a same-document URL reference, regardless of the file in which the property was declared.”

      https://github.com/w3c/svgwg/issues/61
      https://github.com/w3c/svgwg/commit/f378b15b95841cb1297eda7b1a6a2ca2d549ee71

      So Firefox and Edge are not correct per the SVG specification.

    • Microsoft Edge Team

      Changed Status to “Fixed”

    • Hi Anthony

      I was able to reproduce this in 14393.1066.

      I would like to let you know that the latest insider fast version of Windows 10 (15063.138) includes the fix for this issue.

      Thank you for the submission and the support,

      The MS Edge Team

    • Excellent! Thanks for the quick fix!

    You need to sign in to your Microsoft account to add a comment.

    Sign in