セミコロン(;) で終わらないHTML文字実体参照は許されるのか
edvakf edvakf
edvakf edvakf
HTML とテキスト - Entering Passive Mode http://j.mp/gU86RC 「文字実体参照は、& で始まり識別子が続き、 セミコロンか改行で終わる。 セミコロンや改行がない場合は、 識別子として使えない文字が来た時点で終わる。」ほうほう。
kits_ 北村曉
vant vantguarde
think49 think49
think49 think49
think49 think49
think49 think49
"&" の後にくる文字について。/
"The behavior depends on the identity of the next character (the one immediately after the U+0026 AMPERSAND character):"
"The behavior depends on the identity of the next character (the one immediately after the U+0026 AMPERSAND character):"
think49 think49
LF などの空白文字 "&" が後続すると何も展開されない。/
"Not a character reference. No characters are consumed, and nothing is returned. (This is not an error..."
"Not a character reference. No characters are consumed, and nothing is returned. (This is not an error..."
think49 think49
"#" (U+0023) が後続すると数値参照として扱われる。
think49 think49
名前付き文字参照とは http://goo.gl/PL2Xa のこと。このテーブルにない文字列が後続する場合は何もしない。
think49 think49
"If the character reference is being consumed ...(中略)..., and the last character matched is not a U+003B SEMICOLON character (;), ..."
think49 think49
"Otherwise, a character reference is parsed. If the last character matched is not a U+003B SEMICOLON character (;), there is a parse error."
think49 think49