Created — forked from Kevnz/yui3-dom.js

Embed URL

HTTPS clone URL

SSH clone URL

You can clone with HTTPS or SSH.

Download Gist
View yui3-dom.js
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
var result = fs.readFileSync(filename, "binary");
YUI({loadOptional: true})
.use('nodejs-dom', 'event', 'node', function(Y) {
var doc = Y.one('doc');
doc.empty();
doc.append(result);
var idSelector = 'div#test-id';
var classSelector = 'div.test-case';
var idContainer = Y.one(idSelector);
var classContainer = Y.one(classSelector);
if(idContainer === null){
console.log('The ID Selector is null');
}
if(classContainer !== null){
console.log('The Class Selector is not null');
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.