The beginnings of our BetterDOMDocument module for Drupal 7