W3C home > Mailing lists > Public > www-style@w3.org > February 2014

Re: ::Parts of cats and hats everywhere, slashed by shadow

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Fri, 07 Feb 2014 17:26:24 -0500
Message-ID: <52F55D90.1040602@mit.edu>
To: www-style@w3.org
On 2/7/14 5:10 PM, Sylvain Galineau wrote:
> Not to belabor the point but I think the pushback reflects some membersí belief this should *not* be added later i.e. both Type 1 and Type 2 encapsulation should be supported.

OK.  Could we please step back for a second and define exactly what Type 
2 would cover, in terms of CSS?  My understanding of Type 2 is that it 
doesn't try to protect against various convoluted things like redefining 
standard prototype objects or whatnot but tries to protect against 
exposing API to touch the shadow DOM directly, right?

If that understanding is correctly, where do we draw the boundary 
between these two?  .shadowRoot seems like Type 2 would rule it out. 
Overriding Node.appendChild with a function that leaks the thisobj and 
argument to the the page seems like something Type 2 is not aiming to 
protect against.  Agreed so far?

It seems to me that querySelector("foo ^ bar") lies somewhere between 
those two extremes.  Would Type 2 rule it out or not?

Actually clearly defining what Type 2 _means_ is a nontrivial exercise. 
  Much more so than Type 1 or Type 4... :(

-Boris
Received on Friday, 7 February 2014 22:26:53 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:19 UTC