Closed
Description
This is not a great way to select elements, but is allowed:
parentElement.parentElement.parentElement
It would be great if there were an optional rule that discouraged the use of properties such as parentElement
, previousSibling
, and the rest.
The rule could be highly configurable by allowing each property key to be enabled or disabled. It could also allow a certain level of traversing so that one use of a property is okay, but a chain is not.