Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Zend Exam 200-710 Topic 1 Question 91 Discussion

Actual exam question for Zend's 200-710 exam
Question #: 91
Topic #: 1
[All 200-710 Questions]

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

Show Suggested Answer Hide Answer
Suggested Answer: C

Contribute your Thoughts:

Stephen
4 days ago
D) hasAttributeNS() sounds like it's trying too hard. I'm sticking with the classic B) getAttribute() - can't go wrong with that.
upvoted 0 times
...
Ty
5 days ago
I was totally gonna say C) hasAttribute(), but now I'm second-guessing myself. Curse you, tricky DOMElement methods!
upvoted 0 times
...
Lorean
5 days ago
I agree with Claudia, hasAttribute() makes sense for checking non-namespaced attributes
upvoted 0 times
...
Claudia
10 days ago
I think the answer is C) hasAttribute()
upvoted 0 times
...
Julio
15 days ago
B) getAttribute() is the way to go. Keep it simple, no need for all that namespace mumbo-jumbo.
upvoted 0 times
Charlie
5 days ago
C) hasAttribute() could also work, but I agree that getAttribute() is simpler.
upvoted 0 times
...
Tennie
8 days ago
B) getAttribute() is the way to go. Keep it simple, no need for all that namespace mumbo-jumbo.
upvoted 0 times
...
...

Save Cancel