more uniform data dump for DOM elements