minor fixes
This commit is contained in:
parent
4541b7af75
commit
a829155758
1 changed files with 1 additions and 1 deletions
|
@ -51,7 +51,7 @@ The DOM represents HTML as a tree structure of tags. Here's how it looks:
|
|||
<div class="domtree"></div>
|
||||
|
||||
<script>
|
||||
let node1 = {"name":"HTML","nodeType":1,"children":[{"name":"HEAD","nodeType":1,"children":[{"name":"#text","nodeType":3,"content":"\n "},{"name":"TITLE","nodeType":1,"children":[{"name":"#text","nodeType":3,"content":"About elk"}]},{"name":"#text","nodeType":3,"content":"\n"}]},{"name":"#text","nodeType":3,"content":"\n"},{"name":"BODY","nodeType":1,"children":[{"name":"#text","nodeType":3,"content":"\n The truth about elk.\n\n\n"}]}]}
|
||||
let node1 = {"name":"HTML","nodeType":1,"children":[{"name":"HEAD","nodeType":1,"children":[{"name":"#text","nodeType":3,"content":"\n "},{"name":"TITLE","nodeType":1,"children":[{"name":"#text","nodeType":3,"content":"About elk"}]},{"name":"#text","nodeType":3,"content":"\n"}]},{"name":"#text","nodeType":3,"content":"\n"},{"name":"BODY","nodeType":1,"children":[{"name":"#text","nodeType":3,"content":"\n The truth about elk.\n"}]}]}
|
||||
|
||||
drawHtmlTree(node1, 'div.domtree', 690, 320);
|
||||
</script>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue