tmpvar/jsdom — Issue #335: New Window method removes inline events
Author: GB001
Created: 2011-10-15 20:19:35+00:00
State: open

Hi, when I create a new window using:

```javascript

jsdom.defaultDocumentFeatures = {
FetchExternalResources : false,
ProcessExternalResources : false,
MutationEvents : false,
QuerySelector : false
};

var options = {
uri: url,
method: req.method,
headers: {"User-Agent": "Mozilla/5.0 (Windows NT 6.1; rv:6.0) Gecko/20110814 Firefox/6.0"}
}

request(options, function(error, response, body){
if(!error && response.statusCode == 200){
var completion=0;
var window = jsdom.jsdom(body).createWindow();
});
```

All inline events like "onclick" get inexplicably removed.
Example: Click
Becomes: Click