set and clear the open attribute

The spec says that `open` is an attribute. Chrome Canary also sets this attribute.