Re: element existence selector

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