Skip to content

<title> should be stripped if there is none #333

@inssein

Description

@inssein

🐛 Bug Report

When creating buttons for our application, we do something like:

<a title="Follow">
   <SvgIcon />
</a>

The above causes the output svg to contain a blank title (<title></title>), which in Chrome, stops the tooltip from showing up.

What if we completely stripped the title tag when it is undefined?

To Reproduce

Start a project with create-react-app, import an svg component and use it without a title attribute.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions