I was surprised to discover that in Firefox console:
> document.mozPointerLockElement
> null
> 'mozPointerLockElement' in document
> true
> document.hasOwnProperty('mozPointerLockElement')
> false
Whereas in Chrome console equivalent hasOwnProperty()
test returns true:
> document.webkitPointerLockElement
> null
> 'webkitPointerLockElement' in document
> true
> document.hasOwnProperty('webkitPointerLockElement')
> true
Does HTML standard specify which properties of a document should be direct and can be reliably tested with hasOwnProperty()
or are all such tests implementation dependent and not portable?