W3C home > Mailing lists > Public > public-css-archive@w3.org > February 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: Mon, 25 Feb 2019 15:16:31 +0000
To: public-css-archive@w3.org
Message-ID: <issue_comment.created-467049712-1551107790-sysbot+gh@w3.org>
I'm cool with returning `null` here. As Fran├žois says, there's value in doing simple tests to see if a pseudo is supported at all. If you actually try to *use* it, `null` will quickly throw an error anyway. (`null.style` throws immediately)

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3603#issuecomment-467049712 using your GitHub account
Received on Monday, 25 February 2019 15:16:33 UTC

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