ウィキペディアのXHTML-MPの例:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//WAPFORUM//DTD XHTML Mobile 1.1//EN"
"http://www.openmobilealliance.org/tech/DTD/xhtml-mobile11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
<head>
<title>Hello</title>
</head>
<body>
<p>Hello <a href="http://example.org/">world</a>.</p>
</body>
</html>
これはW3C 検証に失敗し、 Input is not appropriate UTF-8, specify encoding !というエラーが表示されます。バイト: 0xA9 0x20 0x32 0x30
追加<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
してバリデーターに UTF8 であることを伝えても、このエラーが発生します。
XHTML-MP DOCTYPE を削除すると、問題なく動作します。契約は何ですか?