Ryosuke Niwa
Ryosuke Niwa
What's up with 8 lang attribute tests without reference files? Maybe inadvertently included in the PR?
> * 7 more where we have agreement in 2 engines and the test, but Safari disagrees (18, 24, 30, 33, 34, 38, 39). > > * I think the...
It seems okay to add this assuming there is no web compatibility issue. It looks like there is at least [one (semi?) popular library](https://github.com/DmitryBaranovskiy/raphael) which implements `insertAfter` so someone needs...
@smaug---- @justinfagnani
Agreed. It's always good to have a list of concrete use cases before adding new API.
Here's a concrete use case. A editor library wants to know when the editor lost the focus. Because `blur` event does not fire on an element that got disconnected from...
`blur` event is not supposed to fire when an element is removed. Due to security concerns, we can't fire `blur` synchronously in that case.
`MutationObserver` fires at the end of the current micro-task, that's much later than synchronous timing which poses a security threat in our engine.
Yeah, I think we should just add this. Here's a concrete proposal: Add boolean `connectedness` to [`MutationObserverInit`](https://dom.spec.whatwg.org/#dictdef-mutationobserverinit), which if set would make the mutation observer start receiving a mutation record...
> Sounds great. Wouldn't it be sufficient with a simple boolean `connected` which is `true|false`? Sorry, I wasn't thinking through. We could just add new mutation record types like `connected`...