pub fn display(indent: usize, node: &Handle, default_style: &Style) -> Style {
    let mut style: Style = *default_style;
    print!("{}", repeat(" ").take(indent).collect::<String>());

    match node.data {
        NodeData::Text { ref contents } => {
            let line: &str = &contents.borrow();
            println!("{}", style.paint(line));
        }

        NodeData::Element {
            ref name,
            ref attrs,
            ..
        } => {