tmpvar/jsdom — Issue #415: Is there a way to access the XML declaration in XHMTL documents
Author: ronancremin
Created: 2012-03-06 17:45:21+00:00
State: open

Hi,

Some XHTML documents are served with an XML declaration e.g.

``` xml

```
In a browser you can access the XML declaration with **window.document.firstChild.data** e.g. in this case:

``` javascript
window.document.firstChild.data
"?xml version="1.0" encoding="UTF-8"?"
```

But this doesn't seem to work with jsdom (the firstChild is the doctype). Is there a way to access this declaration with jsdom?