[whatwg] Consuming ampersands

2008-12-22 Thread Edward Z. Yang
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.

Cheers,
Edward


Re: [whatwg] Consuming ampersands

2008-12-22 Thread Philip Taylor
On Tue, Dec 23, 2008 at 1:08 AM, Edward Z. Yang
edwardzy...@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
exc...@gmail.com