representing the dom as an opengraph object. half-written-code