<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>edvakf</author_name>
  <author_url>https://blog.hatena.ne.jp/edvakf/</author_url>
  <blog_title>by edvakf in hatena</blog_title>
  <blog_url>https://edvakf.hatenadiary.org/</blog_url>
  <categories>
    <anon>JavaScript</anon>
    <anon>Hit-a-Hint</anon>
  </categories>
  <description>自己引用。 そういうわけで自分の用途では、一度 html で XPath 結果を取ってみて、空集合なら上の resolver を使うようにした。 document.evaluateと名前空間がわからない - by edvakf in hatena これだと、名前空間がごちゃ混ぜになっている文書では正常に全ての要素を評価することができない。どうせ HTML (名前空間無し) な要素か XHTML な要素しか取得しないんだから、こんな感じでやることにした。 function getElementsByXPath(exp) { /* exp == '//a[@href]|//input[not(@t…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fedvakf.hatenadiary.org%2Fentry%2F20081109%2F1226254000&quot; title=&quot;Operaでdocument.evaluateするとき名前空間がnullだとエラーになるんだったら名前空間を動的に取得するのはやめる - by edvakf in hatena&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>2008-11-09 03:06:40</published>
  <title>Operaでdocument.evaluateするとき名前空間がnullだとエラーになるんだったら名前空間を動的に取得するのはやめる</title>
  <type>rich</type>
  <url>https://edvakf.hatenadiary.org/entry/20081109/1226254000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
