Skip to content
EPUBCheck · XHTML content documents

HTM_062

Updated:

EPUBCheck HTM_062 is a usage message: “SVG "xlink:href" attribute is deprecated; an "href" attribute should be used instead.” An SVG element uses xlink:href, which is deprecated; plain href should be used instead.

The official message

SVG "xlink:href" attribute is deprecated; an "href" attribute should be used instead.

Default severity
Usage. Informative only and hidden by default: it appears when EPUBCheck runs with -u (--usage). It does not make the EPUB invalid.
EPUBCheck version
5.4.0

EPUBCheck prints this ID with an underscore instead of a hyphen; this page uses the ID exactly as EPUBCheck reports it.

Typical causes

  • SVG produced by older editors.

How to fix it

  • Replace xlink:href with href, or keep both with the same value for older readers.

Terms used here

Other HTM messages

  • HTM_061 "…" is not a valid custom data attribute (it must have at least one character after the hyphen, be XML-compatible, and not contain ASCII uppercase letters).
  • HTM_063 SVG "xlink:href" attribute value ("…") should be equal to the "href" attribute value ("…").
  • HTM_060a EPUB reading systems must ignore secondary viewport meta elements in fixed-layout documents; viewport declaration "…" will be ignored.
  • HTM_060b EPUB reading systems must ignore viewport meta elements in reflowable documents; viewport declaration "…" will be ignored.
  • HTM_057 Viewport "…" value must be a positive number or the keyword "device-…"
  • HTM_055 The "…" element should not be used (discouraged construct)

Message text and severity from EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Explanation by EPUBLab.

FAQ

What does EPUBCheck HTM_062 mean?

EPUBCheck HTM_062 is a usage message: “SVG "xlink:href" attribute is deprecated; an "href" attribute should be used instead.” An SVG element uses xlink:href, which is deprecated; plain href should be used instead.

Is HTM_062 an error?

HTM_062 is reported as usage by default. Informative only and hidden by default: it appears when EPUBCheck runs with -u (--usage). It does not make the EPUB invalid.