function initialSpace(node) {
   if (node.nodeType !== Node.TEXT_NODE) {
     return 0;
   }
 
   return /^\s*/.exec(node.textContent)[0].length;
 }
@param {!Node} node to check for initial space
@return {number} count of initial space