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 200-710 Exam - 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:

0/2000 characters
Ashlee
3 months ago
I thought hasAttribute() was for checking existence, not availability.
upvoted 0 times
...
Delsie
3 months ago
Wait, are we sure it's not hasAttribute()?
upvoted 0 times
...
Domingo
3 months ago
I agree, getAttribute() is the way to go!
upvoted 0 times
...
Rocco
4 months ago
It's definitely getAttribute() for non-namespaced attributes.
upvoted 0 times
...
Glendora
4 months ago
Pretty sure it's getAttributeNS() for namespaced ones, right?
upvoted 0 times
...
Adell
4 months ago
I remember that hasAttribute() checks for the existence of an attribute, but I can't recall if it specifically applies to non-namespaced attributes.
upvoted 0 times
...
Wava
4 months ago
I'm a bit confused about the non-namespaced part. I want to say B, getAttribute(), but I might be mixing it up with something else.
upvoted 0 times
...
Mona
5 months ago
I feel like I saw a question similar to this in our last mock exam, and I think the answer was C, hasAttribute().
upvoted 0 times
...
Eura
5 months ago
I think it's either B or C, but I'm not completely sure. I remember practicing with attributes in DOM manipulation.
upvoted 0 times
...
Buck
5 months ago
I'm a bit confused on the difference between namespaced and non-namespaced attributes. I'll need to review that before answering this.
upvoted 0 times
...
Samira
5 months ago
B. getAttribute() seems like the obvious choice here. I'm pretty confident in that answer.
upvoted 0 times
...
Jettie
5 months ago
Okay, let me see. We're looking for a method to check for non-namespaced attributes, so I'm going to go with C. hasAttribute().
upvoted 0 times
...
Fredric
6 months ago
Hmm, I'm not totally sure about this one. I'll have to think it through carefully.
upvoted 0 times
...
Julio
6 months ago
I think the answer is B. getAttribute() is the method to use for non-namespaced attributes.
upvoted 0 times
...
Kenda
8 months ago
I'm not sure, but I think D) hasAttributeNS() might also work
upvoted 0 times
...
Alonso
8 months ago
B) getAttribute() - the Swiss Army knife of DOMElement methods. Works for both namespace and non-namespace attributes. Easy peasy!
upvoted 0 times
...
Rueben
8 months ago
Ah, the age-old question of namespaced vs. non-namespaced attributes. I'll just close my eyes and point to an answer. *blindly selects C) hasAttribute*
upvoted 0 times
Nancey
7 months ago
User 2: Yeah, that's correct. It's used to check for availability of a non-namespaced attribute.
upvoted 0 times
...
Mozell
8 months ago
User 1: I think the answer is C) hasAttribute()
upvoted 0 times
...
...
Stephen
8 months 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
8 months ago
I was totally gonna say C) hasAttribute(), but now I'm second-guessing myself. Curse you, tricky DOMElement methods!
upvoted 0 times
Edelmira
7 months ago
No, I'm pretty sure it's D) hasAttributeNS().
upvoted 0 times
...
Catrice
7 months ago
I think it's C) hasAttribute().
upvoted 0 times
...
...
Lorean
8 months ago
I agree with Claudia, hasAttribute() makes sense for checking non-namespaced attributes
upvoted 0 times
...
Claudia
9 months ago
I think the answer is C) hasAttribute()
upvoted 0 times
...
Julio
9 months ago
B) getAttribute() is the way to go. Keep it simple, no need for all that namespace mumbo-jumbo.
upvoted 0 times
Elfrieda
8 months ago
A) getAttributeNS() might be more specific, but getAttribute() is definitely easier to use.
upvoted 0 times
...
Charlie
8 months ago
C) hasAttribute() could also work, but I agree that getAttribute() is simpler.
upvoted 0 times
...
Tennie
9 months ago
B) getAttribute() is the way to go. Keep it simple, no need for all that namespace mumbo-jumbo.
upvoted 0 times
...
...

Save Cancel