Re: [csswg-drafts] [css-syntax] Correctly handle "escaped EOF" (#3182)

Agenda+ to verify I can fix this.  The fix is that an "escaped EOF" (aka a `\` at the end of a stylesheet) should return U+FFFD, not a \ as the spec currently mandates. (Except in strings, where it's just silently ignored.)  This matches all browsers now that Edge is going away - the only difference is that Firefox *serializes* such an EOF differently than Chrome/WebKit. (But that's not a Syntax problem, it's a CSSOM problem.)

A side effect of this is that ending a stylesheet with `-\EOF` will create an ident. This matches browser behavior, so it should be fine.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3182#issuecomment-455376948 using your GitHub account

Received on Thursday, 17 January 2019 23:59:07 UTC