[Webkit-unassigned] [Bug 138310] Add parsing for :role()

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Mon Nov 17 17:41:56 PST 2014


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

--- Comment #11 from Benjamin Poulain <benjamin at webkit.org> ---
(In reply to comment #9)
> > I don't think you need to define a new token type.  The type "FUNCTION
> > should work.
> > 
> > > Source/WebCore/css/CSSParser.cpp:10703
> > > +            m_token = ROLEFUNCTION;
> > 
> > You still need this, but I think the token type could be simply FUNCTION.
> 
> If I use "FUNCTION", :role(42) will be valid because there is
> 
> "| ':' FUNCTION maybe_space maybe_unary_operator INTEGER maybe_space ')' {"
> 
> in the grammar.

Oh, of course. I was wondering how :lang() got away with it...but Dhi recently changed lang to have its own token type.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20141118/5752b28d/attachment-0002.html>


More information about the webkit-unassigned mailing list