W3C home > Mailing lists > Public > whatwg@whatwg.org > December 2008

[whatwg] Consuming ampersands

From: Philip Taylor <excors+whatwg@gmail.com>
Date: Tue, 23 Dec 2008 01:14:05 +0000
Message-ID: <ea09c0d10812221714mbd231c9t5273d6cef22a8803@mail.gmail.com>
On Tue, Dec 23, 2008 at 1:08 AM, Edward Z. Yang
<edwardzyang at thewritingpot.com> wrote:
> Hello all,
>
> When I'm consuming a character reference, when does the ampersand get
> consumed? This doesn't seem to be obvious from the documentation, which
> talks of consuming character references and number hash signs, but never
> the ampersand.

They're consumed in the state that comes before the character
reference state, e.g.:

  "8.2.4.1 Data state
  Consume the next input character:
   -> U+0026 AMPERSAND (&) ... switch to the character reference data state."

-- 
Philip Taylor
excors at gmail.com
Received on Monday, 22 December 2008 17:14:05 UTC

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:46 UTC