<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>javascripter</author_name>
  <author_url>https://blog.hatena.ne.jp/javascripter/</author_url>
  <blog_title>素人がプログラミングを勉強していたブログ</blog_title>
  <blog_url>https://javascripter.hatenablog.com/</blog_url>
  <categories>
    <anon>javascript</anon>
  </categories>
  <description>追記：ちょっとコードを短くした。 メモ化、正規表現を使わない工夫、メソッド呼び出しを減らすなど、地味に努力した。 けっこう速いと思う。 引数には、順不同で複数のクラス名を渡せる(&quot;foo bar&quot;、&quot;bar foo&quot;みたいに)。 if (typeof HTMLElement.prototype.getElementsByClassName!=&quot;function&quot;) HTMLElement.prototype.getElementsByClassName=function(className) { var names=className.split(/\s+/), all=this.getEle…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjavascripter.hatenablog.com%2Fentry%2F20080805%2F1217912008&quot; title=&quot;高速なgetElementsByClassName - 素人がプログラミングを勉強していたブログ&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-08-05 13:53:28</published>
  <title>高速なgetElementsByClassName</title>
  <type>rich</type>
  <url>https://javascripter.hatenablog.com/entry/20080805/1217912008</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
