Skip to content

role="tooltip" causes invalid HTML for anchor tags with href #67

@Piggered

Description

@Piggered

This is an add-on to #5.

When using the library to an <a> tag with an href, the HTML becomes invalid according to the W3C validator.

For instance:

<a href="https://github.com/" aria-label="GitHub" data-microtip-position="bottom" role="tooltip">GitHub</a>

will produce the following error:

Attribute href not allowed on element a at this point.

Removing role="tooltip" clears the error, but the tooltip obviously won't work.

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