Apply accessibilities to DOM nodes

A common situation of applying accessibilities to DOM nodes is that I want to make some node unreachable, like a layer of watermarks. If a DOM node can be easily removed, watermarks have lost its meanings.

Perhaps, a DOM node may have some accessibilities like:

  • mountable: to specify whether a DOM node can be mounted or unmounted.
  • readable: to specify whether any properties of a DOM node can be accessed like its style, position, etc.
  • writable: to specify whether a DOM node can be inserted child nodes.

This forum is for the JS language; the DOM is part of the HTML spec:

1 Like

@ljharb developers always access DOM nodes via the Node element, and should I suggest for whatwg? Uh, I have found the specification of DOM, and thanks for your reply.

Note: the suggestion is moved to