Index: trunk/parsers/wikidom/lib/hype/models/es.DocumentModel.js |
— | — | @@ -38,14 +38,13 @@ |
39 | 39 | * |
40 | 40 | * Each rule is an object with a parents and children property. Each of these properties may contain |
41 | 41 | * one of three possible values: |
42 | | - * Array - List of allowed element types |
| 42 | + * Array - List of allowed element types (if empty, no elements will be allowed) |
43 | 43 | * Null - Any element type is allowed (as long as the other element also allows it) |
44 | | - * Boolean False - No elements are allowed (used for nodes that can not have children) |
45 | 44 | * |
46 | 45 | * @example Paragraph rules |
47 | 46 | * { |
48 | 47 | * 'parents': null, |
49 | | - * 'children': false |
| 48 | + * 'children': [] |
50 | 49 | * } |
51 | 50 | * @example List rules |
52 | 51 | * { |
— | — | @@ -55,7 +54,7 @@ |
56 | 55 | * @example ListItem rules |
57 | 56 | * { |
58 | 57 | * 'parents': ['list'], |
59 | | - * 'children': false |
| 58 | + * 'children': [] |
60 | 59 | * } |
61 | 60 | */ |
62 | 61 | es.DocumentModel.nodeRules = {}; |
Index: trunk/parsers/wikidom/lib/hype/models/es.ParagraphModel.js |
— | — | @@ -27,5 +27,5 @@ |
28 | 28 | |
29 | 29 | es.DocumentModel.nodeRules.paragraph = { |
30 | 30 | 'parents': null, |
31 | | - 'children': false |
| 31 | + 'children': [] |
32 | 32 | }; |
Index: trunk/parsers/wikidom/lib/hype/models/es.ListItemModel.js |
— | — | @@ -27,5 +27,5 @@ |
28 | 28 | |
29 | 29 | es.DocumentModel.nodeRules.listItem = { |
30 | 30 | 'parents': ['list'], |
31 | | - 'children': false |
| 31 | + 'children': [] |
32 | 32 | }; |