This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
I don't think it's terribly clear that null was considered in the definition of Node.contains. It would be nice to just handle null explicitly.
https://github.com/whatwg/dom/commit/ce51af976905d57cdc34f140c2f59470e038b36d