[whatwg] Attribute value (double-quoted) state

Ian Hickson ian at hixie.ch
Mon Jul 1 16:08:12 PDT 2013


On Mon, 25 Mar 2013, Mohammad Al Houssami (Alumni) wrote:
>
> Can someone explain wat is meant in the attribute value double quoted 
> state in the tokenization specs [...] What does the additional allowed 
> character mean? [...] It didn't make any sense to me. Im still a 
> beginner and know very few things about this and im trying to build a 
> parser.

On Mon, 25 Mar 2013, Bjoern Hoehrmann wrote:

> It's essentially an input parameter to "consume a character reference". 
> In the particular example, the idea is, "consume a character reference" 
> should look for `"` because the surrounding context, "double quoted" 
> attribute values, uses `"` as closing delimiter. Without the parameter, 
> there would have to be many "consume a character reference" variants, 
> like "consume a character reference in a double quoted attribute value", 
> or character references would have to be looked for in a second pass (so 
> you would first find the closing `"` and then re-parse the value to look 
> for character references since you skipped that in the first pass).

I've tried to clarify this.

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'


More information about the whatwg mailing list