|
12 | 12 | //! This is sufficient as a static parse tree, but don't build a
|
13 | 13 | //! web browser using it. :)
|
14 | 14 | //!
|
15 |
| -//! A DOM is a [tree structure] with ordered children that can be represented in an XML-like |
| 15 | +//! A DOM is a [tree structure] with ordered children that can be represented in an XML-like |
16 | 16 | //! format. For example, the following graph
|
17 | 17 | //!
|
18 | 18 | //! ```text
|
|
29 | 29 | //! See the [document object model article on wikipedia][dom wiki] for more information.
|
30 | 30 | //!
|
31 | 31 | //! This implementation stores the information associated with each node once, and then hands out
|
32 |
| -//! refs to children. The nodes themselves are reference-counted to avoid copy - you can create a |
33 |
| -//! new ref and then a node will outlive the document. Nodes own their children, but only have weak |
34 |
| -//! references to their parents. |
| 32 | +//! refs to children. The nodes themselves are reference-counted to avoid copying - you can create |
| 33 | +//! a new ref and then a node will outlive the document. Nodes own their children, but only have |
| 34 | +//! weak references to their parents. |
35 | 35 | //!
|
36 | 36 | //! [tree structure]: https://en.wikipedia.org/wiki/Tree_(data_structure)
|
37 | 37 | //! [dom wiki]: https://en.wikipedia.org/wiki/Document_Object_Model
|
@@ -60,7 +60,7 @@ pub enum NodeData {
|
60 | 60 | /// The `Document` itself - the root node of a HTML document.
|
61 | 61 | Document,
|
62 | 62 |
|
63 |
| - /// A `DOCTYPE` with name, public id, and system id. See |
| 63 | + /// A `DOCTYPE` with name, public id, and system id. See |
64 | 64 | /// [document type declaration on wikipedia][dtd wiki].
|
65 | 65 | ///
|
66 | 66 | /// [dtd wiki]: https://en.wikipedia.org/wiki/Document_type_declaration
|
|
0 commit comments