Jintrick.netagenda2003年11月アーカイブ → 2003年11月27日

HTML4.01のid属性のcaseの件

> Of course the correct answer is to require uppercase for all fragment
> identifiers.

Since (at least some of major) existing user agents at the time HTML 4.0
was developed recognized fragment identifiers case-sensitively, that
option was unrealistic, unfortunately.

不明なフラグメント識別子であることを承知の上で、大文字にしない勇気が必要とみた。勇気?

因みに参照する側のフラグメント識別子の話であって、参照される側のid属性は大文字にしておいて損はない(非XHTMLの場合)。参照:2003年11月 - マーク付けノート

text/htmlにおいては、フラグメント識別子はリソースではなく「位置」を示すに過ぎず、不明だからと言ってリソースの取得に失敗することはない。しかも大抵の場合不明ではないという。


webmaster@jintrick.net
公開: 2003年11月27日
カテゴリ: HTML