W3C home > Mailing lists > Public > www-style@w3.org > February 2015

Re: element existence selector

From: Daniel Tan <lists@novalistic.com>
Date: Sat, 28 Feb 2015 05:20:23 +0800
Message-ID: <54F0DF97.3090208@novalistic.com>
To: Brian Kardell <bkardell@gmail.com>
CC: "<www-style@w3.org>" <www-style@w3.org>
On 2/28/2015 5:16 AM, Brian Kardell wrote:
>
>
> Actually, there's not really a functional difference between a class and
> an ID other than some minor internal details and the fact that
> getElementById will automatically get you the first one in document
> order, so an ID really wouldn't make much difference here on either the
> author or performance end.
>
> --
> Brian Kardell :: @briankardell :: hitchjs.com <http://hitchjs.com/>

Ah yeah, I meant having a special selector just for IDs seems pointless 
since it makes no difference besides arbitrarily restricting its 
arguments to IDs.

-- 
Daniel Tan
NOVALISTIC
<http://NOVALISTIC.com>
Received on Friday, 27 February 2015 21:20:57 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 22:52:01 UTC