This article is from a long time ago and the spec changed substantially.
It's now all done with properties on ElementInternals:
https://developer.mozilla.org/en-US/docs/Web/API/ElementInte...
They also decided not to ship AccessibleNode's which is unfortunate because it removed the clearest path for canvas+wasm based UIs.