When typing into <input>, an Event is fired. However, when running document.querySelector("input").value = "x", none is fired.
When clicking into <details>, an Event is fired. And when running document.querySelector("details").open = true, the event is also fired.
Is this pure inconsistency or was it the developers personal taste?
Or is there some deeper concept on when events are being fired and when not? Maybe even outside of HTML (on a more general computer science level)?
Background: I'm building a component library and try to be as close to native HTML as possible so that the consumers can feel at home.