code: function isBlockNode(node) {
          if (!node) {
              return false;
          }
          var nodeType = node.nodeType;
          return nodeType == 1 && !inlineDisplayRegex.test(getComputedStyleProperty(node, "display"))
              || nodeType == 9 || 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."