Skip to content

Links in href/src needs a protocol, but not in url(), why ? #273

Description

@sky0matic

Hi there,

We notice that this library was removing links in href/src where there was no protocol.
However, the same doesn't apply to links in url() in style attributes on a background-image for example.

Why is that ?

Is there a security risk involving the need for a protocol ? If so, why does it not apply to url() too ?
If not, why is the protocol required in one place but not the other ?

Thanks

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions