<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>TakiTake</author_name>
  <author_url>https://blog.hatena.ne.jp/TakiTake/</author_url>
  <blog_title>TakiTakeの日記</blog_title>
  <blog_url>https://takitake.hatenablog.com/</blog_url>
  <categories>
    <anon>javascript</anon>
    <anon>xpath</anon>
    <anon>jQuery</anon>
  </categories>
  <description>前提条件として、ドメインは一緒。 昨日の失敗は、iframeのdocumentをcontextに指定したところで、document.createExpressionで評価するからdocument違いが起こっていたためです。そこで、importNodeメソッドですよ。 外部ドキュメントからノードのコピーを作成し、現在のドキュメントに挿入できるようにします。 とのことですので、これを用いてiframe内のノードを引っ張ってくれば、こっちのドキュメント下に置けて、探索できるわけですよ。 せっかくなので、xpath4jquery.jsを用いて $(document.importNode($('ifra…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftakitake.hatenablog.com%2Fentry%2F20090116%2Fp2&quot; title=&quot;iframe内の要素をXPath使って取得 - TakiTakeの日記&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>2009-01-16 00:00:01</published>
  <title>iframe内の要素をXPath使って取得</title>
  <type>rich</type>
  <url>https://takitake.hatenablog.com/entry/20090116/p2</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
