Deprecate all "virtual" commons #3896
Labels
core
Issues in the core code (lib/core)
deprecation
tech debt
Technical debt related tasks
virtual tree
Milestone
When we were working on axe-core 3.0 we imagined we'd have different methods for DOM nodes and virtual DOM nodes. The later would be called with methods ending with
Virtual
. Because of that we ended up with methods likeaccessibleText
andaccessibleTextVirtual
. We've moved away from this approach more recently. More and more of axe runs exclusively on VirtualNodes. It's faster, safer, lets us normalise more consistently, etc. It's far better. Where DOM nodes are needed we can easily get at them fromvNode.actualNode
.So, I would like us to find all
xxxVirtual
methods, make sure their non-virtual counterpart can accept virtual nodes, then deprecate all thosexxVirtual
methods, and remove their use from the code base.The text was updated successfully, but these errors were encountered: