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`.

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]))