<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def el_to_path_vector(el):
 """ Convert `el` to vector of foregoing elements. Attr: el (obj):
 Double-linked HTMLElement instance. Returns: list: HTMLElements which considered as path from root to `el`. """

    path = []
    while el.parent:
        path.append(el)
        el = el.parent

    return list(reversed(path + [el]))