指定の ID 名、クラス名を持った HTML 要素の存在判定

id = a
id = a
class = b
class = c
class = c