屏幕阅读器阅读标题和说明两次,一次适用于<a> tag and for <svg> inside <a> tag

时间:2017-06-08 03:01:23

标签: svg accessibility wai-aria screen-readers

If I use svg(with title and description elements) inside anchor tag, the Screen reader like Narrator reads the title and description for anchor tag as well as svg. So, title and description are being read twice. How can I avoid this?

Eg:

<a>
      <svg>
        <title>Hello</title>
        <description>Sample description</description>
      </svg>
    </a>

0 个答案:

没有答案