Reading through the JavaScript and related specifications, these two concepts appear:
- Relevant agent (HTML)
- Surrounding agent (ES)
Some of the spec uses both. For example, in the steps of 4.2.2.5 Signaling slot change:
Append slot to slot’s relevant agent’s signal slots.
and then a bit further, into step 2:
If the surrounding agent’s mutation observer microtask queued is true, then return.
Are these concepts the same, in this case? Are they the same in all cases, from HTML's perspective?