[whatwg] 8.2.4.37: EOF handling

Philip Taylor wrote:
> EOF is always treated as if it were a character, e.g. lots of places
> say "Consume the next input character: ... EOF -> ... Reconsume the
> EOF character in the data state". 

That seems fair, although most implementations won't have an actual end
of file character; they'll be checking their string index to see if
they've gone out of bounds. But the spec is internally consistent (I'm
just used to seeing an EOF special case on almost every state).

Thanks,
Edward

Received on Monday, 22 December 2008 13:46:07 UTC