Range API should throw a TypeError for null Node parameters. We currently throw a NotFoundError. As per the DOM specification, the Node arguments are not optional nor nullable [1]: https://dom.spec.whatwg.org/#range Therefore, as per the Web IDL specification, we should throw a TypeError if the Node parameter is null or missing: https://heycam.github.io/webidl/#es-interface (step 1). [1] https://heycam.github.io/webidl/#es-nullable-type
Created attachment 260390 [details] Patch
Comment on attachment 260390 [details] Patch Clearing flags on attachment: 260390 Committed r189240: <http://trac.webkit.org/changeset/189240>
All reviewed patches have been landed. Closing bug.
rdar://problem/22544221