National_Instruments
200-500 · Question #2
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
(27 responses)- A4% (1)
- B7% (2)
- C85% (23)
- D4% (1)
Community Discussion
No community discussion yet for this question.