fn first_matching_link(
    root_node: &Node,
    link_text: String,
    partial: bool
) -> Result<Option<String>, ErrorStatus>