kuchiki-rs / kuchiki

(朽木) HTML/XML tree manipulation library for Rust
MIT License
470 stars 54 forks source link

Include the node itself when serializing with to_string #4

Closed BenoitZugmeyer closed 9 years ago

BenoitZugmeyer commented 9 years ago

Calling node.to_string does not display the node itself, only its content. Displaying the node would be more useful in my opinion. I was printing an empty element and a text data and was confused why nothing was printed, as both nodes did not have any child to print.

SimonSapin commented 9 years ago

Thanks!