1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
//! HTML manipulation with CSS selectors. //! //! # Features //! //! * Iteration //! * Manipulation //! * Property //! * Query //! * Traversal //! //! # Get started //! //! ``` //! use nos::Document; //! //! let html = r#"<div> //! <a href="/1">One</a> //! <a href="/2">Two</a> //! <a href="/3">Three</a> //! </div>"#; //! //! let document = Document::from(html); //! let a = document.select("a:nth-child(3)"); //! let text: &str = &a.text(); //! assert!(text == "Three"); //! ``` //! // #![deny(missing_docs)] // TODO: add this back in. mod document; mod dom_tree; mod element; mod manipulation; mod matcher; mod property; mod query; mod selection; mod traversal; pub use document::Document; pub use dom_tree::Node; #[doc(hidden)] pub use dom_tree::NodeId; pub use dom_tree::NodeRef; #[doc(hidden)] pub use dom_tree::SerializableNodeRef; pub use matcher::Matcher; pub use selection::Selection; pub use traversal::Selections;