However, this should be using `this.document[0]` instead of `document`.