Permalink
Browse files

added thead and tbody to elements that need a specific parent

  • Loading branch information...
John Hann
John Hann committed Mar 26, 2012
1 parent 4777b80 commit 91a5323e0df7f79dcdd98fdfadee04eac25a9e42
Showing with 5 additions and 2 deletions.
  1. +5 −2 dom/render.js
View
@@ -15,12 +15,15 @@ define(['when'], function (when) {
var parentTypes, parseTemplateRx, getFirstTagNameRx, undef;
+ // elements that could be used as root nodes and their natural parent type
parentTypes = {
+ 'li': 'ul',
'td': 'tr',
'tr': 'tbody',
'tbody': 'table',
- 'li': 'ul'
- // TODO: finish this list
+ 'thead': 'table',
+ 'tfoot': 'table'
+ // TODO: col, colgroup, caption? any others?
};
parseTemplateRx = /\$\{([^}]*)\}/g;

0 comments on commit 91a5323

Please sign in to comment.