Skip to content

Commit

Permalink
fix docs
Browse files Browse the repository at this point in the history
  • Loading branch information
kostya committed Jun 26, 2024
1 parent 5961050 commit bc975e9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lexbor/node/tree_mutation.cr
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ struct Lexbor::Node
# ```
# document = Lexbor::Parser.new("<html><body><p>Hi!</p></body></html>")
# body = document.body!
# span = document.tree.create_node(:span)
# span = document.create_node(:span)
#
# body.append_child(span)
# body.to_html # <body><p>Hi!</p><span></span></body>
Expand All @@ -24,7 +24,7 @@ struct Lexbor::Node
# ```
# document = Lexbor::Parser.new("<html><body><main></main></body></html>")
# main = document.css("main").first
# header = document.tree.create_node(:header)
# header = document.create_node(:header)
#
# main.insert_before(header)
# document.body!.to_html # <body><header></header><main></main></body>
Expand All @@ -41,7 +41,7 @@ struct Lexbor::Node
# ```
# document = Lexbor::Parser.new("<html><body><div></div></body></html>")
# div = document.css("div").first
# img = document.tree.create_node(:img)
# img = document.create_node(:img)
#
# div.insert_after(img)
# document.body!.to_html # <body><div></div><img></body>
Expand Down

0 comments on commit bc975e9

Please sign in to comment.