Skip to content

Commit

Permalink
Including arian's fixes/comments.
Browse files Browse the repository at this point in the history
  • Loading branch information
ibolmo committed Jan 9, 2012
1 parent 1ebbd44 commit 73b3b17
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Source/Element/Element.js
Expand Up @@ -199,10 +199,10 @@ Elements.implement(Array.prototype);
Array.mirror(Elements);

/*<ltIE8>*/
var createElementAcceptsHTML = Function.attempt(function(){
var x = document.createElement('<input name=x>');
return (x.name == 'x');
});
var createElementAcceptsHTML;
try {
createElementAcceptsHTML = (document.createElement('<input name=x>').name == 'x');
} catch (e){}

var escapeQuotes = function(html){
return ('' + html).replace(/&/g, '&amp;').replace(/"/g, '&quot;');
Expand Down Expand Up @@ -945,9 +945,10 @@ var supportsTableInnerHTML = Function.attempt(function(){
var tr = document.createElement('tr'), html = '<td></td>';
tr.innerHTML = html;
var supportsTRInnerHTML = (tr.innerHTML == html);
tr = null;
/*</ltFF4>*/

if (!supportsTableInnerHTML || !supportsTRInnerHTML){
if (!supportsTableInnerHTML || !supportsTRInnerHTML || !supportsHTML5Elements){

Element.Properties.html.set = (function(set){

Expand Down

0 comments on commit 73b3b17

Please sign in to comment.