The population of the hierarchy property starts with the element that was clicked, changed, or submitted. From there, it goes up the DOM tree and captures ancestor elements until it reaches the 1024-character limit.
For more information about how the hierarchy property works in Heap, see Tags, classes, and IDs.