add ecmascriptvers/w3cdomversion attributes. Thanks to MArek Habersack.