code: function isBlockNode(node) {
          return node &&
              ((node.nodeType == 1 && !/^(inline(-block|-table)?|none)$/.test(getComputedDisplay(node))) ||
              node.nodeType == 9 || node.nodeType == 11);
      }
docs: "A block node is either an Element whose "display" property does not have resolved value "inline" or "inline-block" or "inline-table" or "none", or a Document, or a DocumentFragment."