in reply to From a given text Extract the root HTML element inner text
open :F html 1.html ; cd //text()[.="AAAAAA"] ; ls ancestor::div[1] ; [download]