Skip to content

Commit 3d47bed

Browse files
committed
fix doctests
1 parent 54d96a9 commit 3d47bed

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/node.jl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,10 @@ with some child nodes and additional properties.
1515
The most common type of `Node` is a DOM node. These can be constructed just by
1616
specifying a symbol as the `instanceof` (they are promoted to an instance of
1717
`WebIO.DOM` under the hood).
18+
1819
```jldoctest
20+
julia> using WebIO
21+
1922
julia> Node(:div, Node(:p, "I am a paragraph!", class="important"))
2023
(div
2124
(p { class="important" }
@@ -60,6 +63,8 @@ type.
6063
6164
# Examples
6265
```jldoctest
66+
julia> using WebIO
67+
6368
julia> repr(WebIO.promote_instanceof(:div))
6469
"WebIO.DOM(:html, :div)"
6570
```

0 commit comments

Comments
 (0)