Skip to content
Browse files

Test `children` property for compliance against comment nodes (fails …

…in IE). Thanks Sander Sõnajalg for suggestion.
  • Loading branch information...
1 parent 54b0b16 commit 30aa94bf09951c9dff893be573da2e9d3dea528c @kangax kangax committed Jan 5, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 feature_tests.js
View
2 feature_tests.js
@@ -255,7 +255,7 @@ SOFTWARE.
docEl = document.documentElement;
if (document.createElement && typeof docEl.children != 'undefined') {
var el = document.createElement('div');
- el.innerHTML = '<div><p>a<\/p><\/div>b';
+ el.innerHTML = '<div><p>a<\/p><\/div>b<!-- x -->';
// Safari 2.x returns ALL elements in `children`
// We check that first element is a DIV and that it's the only one element returned
isSupported = (el.children &&

0 comments on commit 30aa94b

Please sign in to comment.
Something went wrong with that request. Please try again.