HTML Spec PR: https://github.com/whatwg/html/pull/10344
<rdar://problem/129220367>
Isn't it same as bug 274798?
There's a subtle difference one is the JS API one is the wider algorithm which is called from other places too.