<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>koutas0121</author_name>
  <author_url>https://blog.hatena.ne.jp/koutas0121/</author_url>
  <blog_title>trashbox</blog_title>
  <blog_url>https://koutas0121.hatenadiary.org/</blog_url>
  <categories>
    <anon>JavaScript</anon>
  </categories>
  <description>グローバル変数名にsizeとかやばいかなと思いつつ使っていたら&lt;select name=&quot;month&quot; id=&quot;month&quot; onchange=&quot;changeMonth(size)&quot;&gt;が呼び出し先でsizeが期待した値ではなく0が渡されていた。 タグ内では属性名がローカル変数として定義されているようでselectのsize属性の値が呼び出し先に渡されていたみたい （でも、1ではなくて0なのが意外。 省略した場合は0が入って0の場合は1と同じ動作をしているのか） this.valueとかできるのはこういうことだったんだね。 タグ内で省略した属性でもローカル変数に定義されているので注意。グローバル…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fkoutas0121.hatenadiary.org%2Fentry%2F20111209%2F1323418472&quot; title=&quot; HTMLタグ内では属性名がローカル変数として定義されている - trashbox&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>2011-12-09 17:14:32</published>
  <title> HTMLタグ内では属性名がローカル変数として定義されている</title>
  <type>rich</type>
  <url>https://koutas0121.hatenadiary.org/entry/20111209/1323418472</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
