HTML Validator の謎警告
XHTML 1.1 で書いた XHTML 文書を W3C の Validator でチェックしたところ、以下の警告が出てしまいました。
Mismatch between Public and System identifiers in the DOCTYPE declarationThis document uses an inconsistent DOCTYPE declaration. The Public Identifier -//W3C//DTD XHTML 1.1//EN declares the XHTML 1.1 document type, but the associated System Identifier http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd does not match this document type.
The recommended System Identifier for XHTML 1.1 is http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd.
The safest way to use a correct DOCTYPE declaration is to copy and paste one from the recommended list and avoid editing that part of your markup by hand.
要は 「システム識別子 "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" は XHTML 1.1 に適合してませんよ、推奨されるシステム識別子は "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd" ですよ」 ってことなんだけど、違いがわからないんです・・・。 どっちも一緒だよねぇ。
でも (コピペして) 実際書き直してみると警告が出なくなるという謎。 なにこれこわい。