Skip to content

Commit

Permalink
Noting xlink:href fallback option to support older browsers (#16242)
Browse files Browse the repository at this point in the history
* Noting xlink:href fallback option

* Update files/en-us/web/svg/attribute/xlink_colon_href/index.md

Accepting CR suggestion

Co-authored-by: Onkar Ruikar <87750369+OnkarRuikar@users.noreply.github.com>

Co-authored-by: Onkar Ruikar <87750369+OnkarRuikar@users.noreply.github.com>
  • Loading branch information
meatnordrink and OnkarRuikar committed May 24, 2022
1 parent 1f4debf commit 420b8e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/en-us/web/svg/attribute/xlink_colon_href/index.md
Expand Up @@ -11,7 +11,7 @@ browser-compat: svg.elements.a.xlink_href

The **`xlink:href`** attribute defines a reference to a resource as a reference [IRI](/en-US/docs/Web/SVG/Content_type#iri). The exact meaning of that link depends on the context of each element using it.

> **Note:** SVG 2 removed the need for the `xlink` namespace, so instead of `xlink:href` you should use {{SVGAttr("href")}}.
> **Note:** SVG 2 removed the need for the `xlink` namespace, so instead of `xlink:href` you should use {{SVGAttr("href")}}. If you need to support earlier browser versions, the deprecated `xlink:href` attribute can be used as a fallback in addition to the `href` attribute, e.g. `<use href="some-id" xlink:href="some-id x="5" y="5" />`.
You can use this attribute with the following SVG elements:

Expand Down

0 comments on commit 420b8e8

Please sign in to comment.