<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>hokaccha</author_name>
  <author_url>https://blog.hatena.ne.jp/hokaccha/</author_url>
  <blog_title>hokaccha memo</blog_title>
  <blog_url>https://hokaccha.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>例えば &lt;div data-foo=&quot;a&quot; data-bar=&quot;b&quot; data-baz=&quot;c&quot;&gt;...&lt;/div&gt; みたいに任意のカスタムデータ属性がついてて、こっから { foo: 'a', bar: 'b', baz: 'c' } みたいなデータを作りたいので属性を全部取得したいんだけど、 jQuery ではできないっぽい。DOMの element.attributes を使えばいける。 var div = document.querySelector('div'); var attrs = div.attributes; for (var i = 0, len = attrs.lengt…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fhokaccha.hatenablog.com%2Fentry%2F20130819%2F1376895914&quot; title=&quot;要素の属性を全部取得する - hokaccha memo&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>http://a0.twimg.com/profile_images/3781947339/78c05da5e3c103774d85c556afbe52bc_normal.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-08-19 16:05:14</published>
  <title>要素の属性を全部取得する</title>
  <type>rich</type>
  <url>https://hokaccha.hatenablog.com/entry/20130819/1376895914</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
