From bc975e9688d0a9fc4616d34fdc74f1a42c01230b Mon Sep 17 00:00:00 2001 From: Konstantin Makarchev Date: Wed, 26 Jun 2024 22:30:33 +0300 Subject: [PATCH] fix docs --- src/lexbor/node/tree_mutation.cr | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lexbor/node/tree_mutation.cr b/src/lexbor/node/tree_mutation.cr index 03284f6..ebd5dff 100644 --- a/src/lexbor/node/tree_mutation.cr +++ b/src/lexbor/node/tree_mutation.cr @@ -7,7 +7,7 @@ struct Lexbor::Node # ``` # document = Lexbor::Parser.new("

Hi!

") # body = document.body! - # span = document.tree.create_node(:span) + # span = document.create_node(:span) # # body.append_child(span) # body.to_html #

Hi!

@@ -24,7 +24,7 @@ struct Lexbor::Node # ``` # document = Lexbor::Parser.new("
") # main = document.css("main").first - # header = document.tree.create_node(:header) + # header = document.create_node(:header) # # main.insert_before(header) # document.body!.to_html #
@@ -41,7 +41,7 @@ struct Lexbor::Node # ``` # document = Lexbor::Parser.new("
") # div = document.css("div").first - # img = document.tree.create_node(:img) + # img = document.create_node(:img) # # div.insert_after(img) # document.body!.to_html #