Update article.md
This commit is contained in:
parent
99e59ba611
commit
5aeb8fe6ae
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."}]}]}
|
||||
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