W3C home > Mailing lists > Public > public-css-archive@w3.org > November 2018

Re: [csswg-drafts] [css-shadow-parts] fully specify the parser for the forwarding micro-syntax

From: fergald via GitHub <sysbot+gh@w3.org>
Date: Fri, 09 Nov 2018 07:27:57 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-437273711-1541748477-sysbot+gh@w3.org>
13add368a8d60f7b1bc152e23e3695a43596fc11 adds a full specified parser. I'd appreciate people sanity checking it. A couple of points:

- I chose strict over lenient, e.g. "foo: bar buz" will be result in nothing at all. An alternative would be to make "foo:bar buz" give you the same result as "foo: bar" and just ignore the buz. I don't have a strong opinion on which it should be, my preference is strictness but browsers tend to be very lenient. The downside of being lenient is that if we decide to assign a meaning to "foo: bar buz" in the future, bad things may happen to pages that were working only because of lenience...
- I followed the parser specs in the HTML spec. There are certain things defined in there like "[collect a sequence of code points](https://infra.spec.whatwg.org/#collect-a-sequence-of-code-points)" which aren't defined in this spec. I'm not sure what the correct approach is to fix this, just reference the HTML doc?

@tabatkins 

-- 
GitHub Notification of comment by fergald
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/2412#issuecomment-437273711 using your GitHub account
Received on Friday, 9 November 2018 07:27:59 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 19 October 2021 01:30:59 UTC