<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>kikiki-kiki</author_name>
  <author_url>https://blog.hatena.ne.jp/kikiki-kiki/</author_url>
  <blog_title>かもメモ</blog_title>
  <blog_url>https://chaika.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
    <anon>TypeScript</anon>
    <anon>Tips</anon>
  </categories>
  <description>シンプルに Element.className や Element.getAttribute('class') 使いなよ。って話ではあるが、JavaScript の Element.classList で取得できるクラス名を HTML にあるように半角スペース区切りの文字列で得たいときってどうするんだっけ？と思ったのでメモ 環境 TypeScript: v5.5.4 &lt;body class=&quot;ichigo aoi ran akari&quot;&gt; document.body.className; // =&gt; &quot;ichigo aoi ran akari&quot; document.body.getAttribut…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fchaika.hatenablog.com%2Fentry%2F2024%2F12%2F21%2F083000&quot; title=&quot;JavaScript classList からクラス名を文字列で取得する方法 - かもメモ&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>https://cdn-ak.f.st-hatena.com/images/fotolife/k/kikiki-kiki/20241220/20241220015822.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-12-21 08:30:00</published>
  <title>JavaScript classList からクラス名を文字列で取得する方法</title>
  <type>rich</type>
  <url>https://chaika.hatenablog.com/entry/2024/12/21/083000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
