W3C home > Mailing lists > Public > public-css-archive@w3.org > April 2019

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

From: Tab Atkins Jr. via GitHub <sysbot+gh@w3.org>
Date: Tue, 16 Apr 2019 20:56:18 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-483839952-1555448177-sysbot+gh@w3.org>
They'll return different objects if the arguments cause the calls to refer to different pseudo-elements, sure. If they resolve to the same pseudo they'll return the same object. "Same" here means whether styles applied with the two selectors cascade together or not.

(Moot right now due to the limited list, of course.)

Not sure how that eventual clarification is relevant to the syntax argument, tho. That question needs answering regardless of how you write the JS method.

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3603#issuecomment-483839952 using your GitHub account
Received on Tuesday, 16 April 2019 20:56:19 UTC

This archive was generated by hypermail 2.4.0 : Tuesday, 5 July 2022 06:41:46 UTC