This depends on what Element
is and whether getAttribute
is defined for it. If so, the question is: what does getAttribute
do, if called with the parameter of "src"
. For instance, if getAttribute
is like this:
function MyElement() {
var that = this;
var getAttribute = function(param) {
return that.param;
}
}
and Element
is an instance of MyElement
, then the answer is yes, unless getAttribute
was overriden since instantiation.
solved What would be the outcome of evaluating the following statements? {javascript}