<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>nyarla-net</author_name>
  <author_url>https://blog.hatena.ne.jp/nyarla-net/</author_url>
  <blog_title>カラクリスタ</blog_title>
  <blog_url>https://the.nyarla.jp/</blog_url>
  <categories>
  </categories>
  <description>概要: とてもシンプルに自分自身が属する script 要素を取得 の注意点。 とてもシンプルに自分自身が属する script 要素を取得 は docment.write相当のことを DOM で行うのに非常に便利なんですが、 他でもないdocument.writeと非常に相性が悪いみたいです。 どういう事かと言うと、自分自身が属する script 要素の取得の前にdocument.write使うと、 自分自身が属する script 要素の取得が動かなくなります。 以下実証コード。要素の取得の部分は id:amachang さんのコードそのままです。 document.write('hoge')…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fthe.nyarla.jp%2Fposts%2F2007%2F01%2F20%2F000437%2F&quot; title=&quot;「とてもシンプルに自分自身が属する script 要素を取得」の注意点 - カラクリスタ&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>2007-01-20 00:04:37</published>
  <title>「とてもシンプルに自分自身が属する script 要素を取得」の注意点</title>
  <type>rich</type>
  <url>https://the.nyarla.jp/posts/2007/01/20/000437/</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
