Retarget relative links during mummification.

Description

Before a mummified artifact is generated, it needs to have its links and other references retargeted to the target tree.

For example, a source reference to foo.xhtml or foo.md in the source tree needs to be changed to foo.html to reflect the artifact name in the target tree.

The types of links that need to be retargeted, showing the elements and corresponding attributes:

  • <a>: href

  • <area>: href

  • <audio>: src

  • <embed>: src

  • <iframe>: src

  • <img>: src

  • <link>: href

  • <object>: data

  • <script>: src

  • <source>: src

  • <track>: src

  • <video>: src

See HTML 5.2 § 4.8. Links.

See also Is an empty href valid?.

This ticket will leave srcset to be implemented in GUISE-39, and <base> to be addressed in GUISE-40.

Environment

None

Assignee

Garret Wilson

Reporter

Garret Wilson

Labels

None

Components

Fix versions

Priority

Blocker
Configure