Moving table out of example.
This commit is contained in:
@@ -174,12 +174,10 @@ constructed of. What parts do you see here?
|
|||||||
I see three parts: the name of the tag, the tag's properties, and its
|
I see three parts: the name of the tag, the tag's properties, and its
|
||||||
children.
|
children.
|
||||||
|
|
||||||
#+begin_example
|
|
||||||
|----------+-----------------------------|
|
|----------+-----------------------------|
|
||||||
| name | 'div', 'h1', 'input' |
|
| name | 'div', 'h1', 'input' |
|
||||||
| props | 'class', 'type', 'disabled' |
|
| props | 'class', 'type', 'disabled' |
|
||||||
| children | <h1>, <input>, Hello |
|
| children | <h1>, <input>, Hello |
|
||||||
#+end_example
|
|
||||||
|
|
||||||
#+BEGIN_SRC
|
#+BEGIN_SRC
|
||||||
tag name: 'div'
|
tag name: 'div'
|
||||||
|
|||||||
@@ -40,12 +40,9 @@ To start with we need to create a data structure that both represents a DOM tree
|
|||||||
|
|
||||||
I see three parts: the name of the tag, the tag's properties, and its children.
|
I see three parts: the name of the tag, the tag's properties, and its children.
|
||||||
|
|
||||||
```
|
|
||||||
|----------+-----------------------------|
|
|
||||||
| name | 'div', 'h1', 'input' |
|
| name | 'div', 'h1', 'input' |
|
||||||
| props | 'class', 'type', 'disabled' |
|
| props | 'class', 'type', 'disabled' |
|
||||||
| children | <h1>, <input>, Hello |
|
| children | <h1>, <input>, Hello |
|
||||||
```
|
|
||||||
|
|
||||||
```
|
```
|
||||||
tag name: 'div'
|
tag name: 'div'
|
||||||
|
|||||||
Reference in New Issue
Block a user