SiteLint

  1. Home
  2. Docs
  3. SiteLint
  4. Quality Rules
  5. illegal-character-in-link-domain

illegal-character-in-link-domain

Print this article

Description

This rule determines if the domain specified in attribute href on <a> or <area> HTML element does not contain illegal characters considered unsafe.

Incorrect example

<a href="https://This is incorrect domain/">Invalid link</a>

How to fix it

  • Ensure domain specified in the attribute href does not contain illegal characters, e.g. space.

Standard

Quality, Best Practice, SiteLint

Was this article helpful to you? Yes No