<commit_before>Dom Perignon
===

* Takes an XHR object and converts the response to a DOM structure
* Takes a string and converts to a DOM structure
* Determines whether the browser is capable of parsing html using responseType = "document"

### Usage

```
define(["dom-perignon"], function(Parse) {
  return function Load(url, callback) {
    var xhr = new_xhr(); // your fav cross-browser method
    xhr.open("GET", url);
    xhr.onreadystatechange = function() {
    if(this.readyState === 4) {
        // use Dom Perignon to parse this
        var doc = Parse(xhr);
        callback(doc);
    }
    };

    // check if the XHR object supports html parsing
    if(Parse.document) {
      xhr.responseType = "document";
    }

    xhr.send();
  }
});
```<commit_msg>Adding a bit about compatibility<commit_after>Dom Perignon
===

* Takes an XHR object and converts the response to a DOM structure
* Takes a string and converts to a DOM structure
* Determines whether the browser is capable of parsing html using responseType = "document"

### Usage

```
define(["dom-perignon"], function(Parse) {
  return function Load(url, callback) {
    var xhr = new_xhr(); // your fav cross-browser method
    xhr.open("GET", url);
    xhr.onreadystatechange = function() {
    if(this.readyState === 4) {
        // use Dom Perignon to parse this
        var doc = Parse(xhr);
        callback(doc);
    }
    };

    // check if the XHR object supports html parsing
    if(Parse.document) {
      xhr.responseType = "document";
    }

    xhr.send();
  }
});
```

###Compatibility

Known to work in (as in tested in):
* IE8+ 
* Safari 5+  
* Chrome 27
* Firefox 21
* Opera 11.62

it probably works in earlier versions as well, please file issues if not
{'fraction_non_alphanumeric': 0.1151862464183381, 'fraction_numerical': 0.006876790830945559, 'mean_word_length': 2.9863013698630136, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5462989', 'n_tokens_mistral': 562, 'n_tokens_neox': 519, 'n_words': 189}