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

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