Wednesday, 11 September 2013

what does getting the documentElement of 0 return

what does getting the documentElement of 0 return

most javascript libraries contain lines similar to:
var b = (a ? a.ownerDocument || a: 0).documentElement;
if a is null, what is (0).documentElement supposed to return?

No comments:

Post a Comment