We only need these names when serializing a11y information
for tests. And copying these strings is entirely unnecessary.
So, just pass a callback instead.
While we have split the various attributes for convenience, there's no
reason why we should have specialised data types for the attributes
container object.