System.Windows.Forms.HtmlElement クラスの GetAttribute メソッドのメモ

たとえば、

<table class="hoge"></table>

のような HTML を解析して、class という属性の値 "hoge" を取得するためには、GetAttribute メソッドの引数に渡す属性名は "class" ではなく "className" にしなければならない。
なぜかは知らない。
class に限ってなにか特別らしい。name や cellspacing という属性ならばそのままで良い。


...キーワードで検索すればすぐに関連する話題が見つかる。
http://www.atmarkit.co.jp/bbs/phpBB/viewtopic.php?topic=40487&forum=7
http://www.atmarkit.co.jp/fdotnet/dotnettips/908classname/classname.html