[Javascript] Mapping Image

Mike Dougherty mdougherty at pbp.com
Thu Sep 14 13:29:25 CDT 2006


Do you think the redundancy has a negative impact on performance that outweighs the increased 
readability that this notation provides?  Aside from the unlikely case of needing to arbitrarily 
increase specificity by doubling up the Id the selector, I think it can be useful to identify for 
the developer that the ID selector is a child of another element in the markup.

Is there a reason I should specifically NOT do that?

On Thu, 14 Sep 2006 08:05:11 -0700
  Paul Novitski <paul at juniperwebcraft.com> wrote:
> By the way, this style rule is redundant:
> 
>         #picture A#part1 {...}
> 
> Because Ids are unique on the page, there can be only one #part1, so you don't need to specify 
>its parent.



More information about the Javascript mailing list