<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>momdo</author_name>
  <author_url>https://blog.hatena.ne.jp/momdo/</author_url>
  <blog_title>水底の血</blog_title>
  <blog_url>https://momdo.hatenablog.jp/</blog_url>
  <categories>
  </categories>
  <description>@_yuheiyによる当エンジニアブログで実施したアクセシビリティ改善の方法についての解説は全体的に丁寧に説明しているだけに、下記の記述がちょっと気になったという話です。 これがimg要素であればalt属性を使って代替テキストを設定すべきですが、svg要素ではそれができません。そこで、WAI-ARIAの出番です。次のようにすることで、alt属性と同様に代替テキストが設定できます。 SVGネイティブに代替テキストを設定する方法は（SVGの）title要素だ、ということはおさえておくべきかなと。SVG2仕様書訳（原仕様書）に次のように書かれています。 title 要素は、 その親要素用の短いテキス…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmomdo.hatenablog.jp%2Fentry%2F20250510%2F1746858580&quot; title=&quot;&amp;lt;svg&amp;gt;ではaltが使えないからaria-labelはロジックをすっ飛ばしている - 水底の血&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-05-10 15:29:40</published>
  <title>&lt;svg&gt;ではaltが使えないからaria-labelはロジックをすっ飛ばしている</title>
  <type>rich</type>
  <url>https://momdo.hatenablog.jp/entry/20250510/1746858580</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
