Re: [csswg-drafts] [css-pseudo-4] Should Element.pseudo("unknown") be an error or return null? (#3603)

I'd expect an exception if it doesn't meet the syntactic requirements for a pseudo-element. However, I guess that only really works if pseudo-elements won't gain arguments. Because at that point it's ambiguous whether `before(...)` meets the constraints or not.

It's somewhat confusing though that this issue uses "unknown" and the TAG review issue uses ":unknown". Does "before" work? Does ":before"? Does "::before"? Is there a formal definition of this method somewhere?

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

Received on Tuesday, 26 February 2019 09:26:28 UTC