diff --git a/src/DOM.js b/src/DOM.js index 6624a46..8370c29 100644 --- a/src/DOM.js +++ b/src/DOM.js @@ -1,437 +1,437 @@ /** * @requires javelin-install javelin-util javelin-vector javelin-stratcom * @provides javelin-dom * @javelin */ JX.install('HTML', { construct : function(str) { if (this == JX || this == window) { return new JX.HTML(str); } if (__DEV__) { var tags = ['legend', 'thead', 'tbody', 'tfoot', 'column', 'colgroup', 'caption', 'tr', 'th', 'td', 'option']; var evil_stuff = new RegExp('^\\s*<('+tags.join('|')+')\\b', 'i'); var match = null; if (match = str.match(evil_stuff)) { throw new Error( 'JX.HTML("<'+match[1]+'>..."): '+ 'call initializes an HTML object with an invalid partial fragment '+ 'and can not be converted into DOM nodes. The enclosing tag of an '+ 'HTML content string must be appendable to a document fragment. '+ 'For example, is allowed but or are not.'); } var really_evil = /..."): '+ 'call initializes an HTML object with an embedded script tag! '+ 'Are you crazy?! Do NOT do this!!!'); } var wont_work = /..."): '+ 'call initializes an HTML object with an embedded tag. IE '+ 'will not do the right thing with this.'); } // TODO(epriestley): May need to deny