On Thu, 28 Dec 2006 18:15:25 +0100, Thomas Broyer <[EMAIL PROTECTED]>  
wrote:
>> It seems you emit a comment token X for <?X> where you really should  
>> emit X according to the specification.
>
> I disagree.
>
> In "tag open state":
> <http://www.whatwg.org/specs/web-apps/current-work/#tag-open>
> """
> Consume the next input character:
> [...]
> U+003F QUESTION MARK (?)
>     Parse error. Switch to the bogus comment state.
> """
>
> The question mark is consumed, so it's not part of the comment's value.

You should also read "Bogus comment state"  
http://www.whatwg.org/specs/web-apps/current-work/#bogus before drawing  
any conclusions: "Emit a comment token whose data is the concatenation of  
all the characters starting from and __including__ the character that  
caused the state machine to switch into the bogus comment state [...]"

;-)


-- 
Anne van Kesteren
<http://annevankesteren.nl/>
<http://www.opera.com/>
_______________________________________________
implementors mailing list
[email protected]
http://lists.whatwg.org/listinfo.cgi/implementors-whatwg.org

Reply via email to