nerdexam
Zend

200-530 · Question #229

What DOMElement method should be used to check for availability of a non-namespaced attribute?

The correct answer is C. hasAttribute(). See the full explanation below for the reasoning.

Question

What DOMElement method should be used to check for availability of a non-namespaced attribute?

Options

  • AgetAttributeNS()
  • BgetAttribute()
  • ChasAttribute()
  • DhasAttributeNS()

How the community answered

(23 responses)
  • A
    4% (1)
  • B
    9% (2)
  • C
    83% (19)
  • D
    4% (1)

Community Discussion

No community discussion yet for this question.

Full 200-530 Practice