[Webkit-unassigned] [Bug 87805] [Shadow DOM] <style> inside Shadow subtree should be scoped inside the subtree.

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Fri Jun 8 09:18:16 PDT 2012


https://bugs.webkit.org/show_bug.cgi?id=87805





--- Comment #10 from Dimitri Glazkov (Google) <dglazkov at chromium.org>  2012-06-08 09:18:15 PST ---
(In reply to comment #9)
> > >    <style id="mystyle" scoped>div { color: red };</style>
> > > 
> > >    var style = document.getElementById("mystyle");
> > >    style.setAttribute("scoped", "a"); // parseAttribute is invoked with !value.isNull
> > >    style.setAttribute("scoped", "b"); // parseAttribute is invoked with !value.isNull
> > >    style.setAttribute("scoped", "c"); // parseAttribute is invoked with !value.isNull
> > >    style.setAttribute("scoped", "d"); // parseAttribute is invoked with !value.isNull
> > 
> > I don't understand what you're testing here. Can you explain a bit more?
> 
> I mean, if I can expect that parseAttribute is invoked if and only if an attribute value is actually changed, i.e. from false to true or from true to false. If so, we can determine old scoped value from current scoped value.
> However, the above test shows that it doesn't depend on whether scoped attribute's bool value changes or not.

Hmm.. The test above never sets the value of the attribute to "false". Remember, this is a boolean attribute (http://www.whatwg.org/specs/web-apps/current-work/multipage/common-microsyntaxes.html#boolean-attributes). Only removing the attribute will qualify as "false".

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list