// straightforward implementation // // drawbacks: // // - using querySelectorAll always returns an array, when the main use case is to select just one, // having to access to the first node: dom('#nodeId')[0] // // - using querySelector just return the first element so we need an alternative way of access the // other possible nodes // // - it does not support plugins define('dom', function () { return document.querySelectorAll.bind(document); });