<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>rikuba</author_name>
  <author_url>https://blog.hatena.ne.jp/rikuba/</author_url>
  <blog_title>rikubaのブログ</blog_title>
  <blog_url>https://rikuba.hatenablog.com/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>HTML5で、紐付けたいデータが文字列なら、data-で始まる属性(custom data attribute)を付けることができる（詳細はコメント欄を参照）。 DOM3のNode#setUserData・Node#getUserDataのように、間接的に要素とデータを紐付けられる関数を作った。jQuery.data()のようなものと言ったほうが分かりやすいかも。ただ、jQuery.data()は要素に独自のプロパティ（「jQuery」に時刻のミリ秒表現を続けた文字列）を生やしてしまう。 特徴 Node#[sg]etUserDataとの違い 要素ノードのみ対応。 Node#setUserDat…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Frikuba.hatenablog.com%2Fentry%2F20100816%2F1281929108&quot; title=&quot;要素ノードにデータを紐付ける関数 - rikubaのブログ&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>2010-08-16 12:25:08</published>
  <title>要素ノードにデータを紐付ける関数</title>
  <type>rich</type>
  <url>https://rikuba.hatenablog.com/entry/20100816/1281929108</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
