Skip to content

Allow rel="license" microformat for machine-readable Creative Commons attribution

What does this MR do and why?

We no longer sanitize the rel="license" attribute from HTML link. This allows license attribution, such as the Creative Commons license

How to set up and validate locally

  1. Add this html to a comment or description.

    <a rel="license" href="http://creativecommons.org/licenses/by/4.0/"><img alt="Creative Commons License" style="border-width:0" src="https://i.creativecommons.org/l/by/4.0/88x31.png" /></a><br />This work is licensed under a <a rel="license" href="http://creativecommons.org/licenses/by/4.0/">Creative Commons Attribution 4.0 International License</a>.
  2. save it and then verify that rel="nofollow noreferrer noopener license" exists in the link, using Inspect Element to view the DOM

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #20857 (closed)

Edited by Brett Walker

Merge request reports

Loading