Skip to content

Commit

Permalink
allow VDOMNodes to be null
Browse files Browse the repository at this point in the history
  • Loading branch information
rgbkrk committed Oct 1, 2017
1 parent bc2002d commit 33dacf6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions docs/spec.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ The top level object is a `VDOMElement`, defined in JavaScript as:

### `VDOMNode`

A `VDOMNode` may be a `VDOMEl`, a `string` or an `Array<VDOMNode>`.
A `VDOMNode` may be a `VDOMEl`, a `string` an `Array<VDOMNode>`, or `null`.

### `tagName`

Expand All @@ -37,7 +37,8 @@ to other new elements.

### `children`

Any of these: `VDOMEl`, `string`, or an `Array<VDOMNode>`.
`children` can be a `VDOMNode`, which is a `VDOMEl`, a `string` an
`Array<VDOMNode>`, or `null`

### `attributes`

Expand Down

0 comments on commit 33dacf6

Please sign in to comment.