.querySelector()
is defined as part of a DOM API, specifically the Selectors API, which Zombie.js is using an implementation of.
So, as it does in other browsers, it should return:
[...] the first element that is a descendent of the element on which it is invoked that matches the specified group of selectors.
In this case, based on the UL.navigation
in the log, t
is an HTMLUListElement
. Or:
<ul class="navigation"></ul>
And, in cases where no matching Element
can be found, it'll return null
.