amhnews/amhnews — comment on commit 89eb7699bbe6f0a2de9ad3186b0b4bb0913a1830
File:  line 0
By amhnews:

YUI().use('node', function (Y) {
// Access DOM nodes.
var oneElementById = Y.one('#foo'),
oneElementByName = Y.one('body'),
allElementsByClass = Y.all('.bar');

// Create DOM nodes.
var contentNode = Y.Node.create('

'),
listNode = Y.Node.create('

'),
footerNode = Y.Node.create('

');

contentNode.setContent('

Node makes it easy to add content.

');
listNode.insert('
Buy milk
');
footerNode.prepend('

Footer Content

');

// Manipulate DOM nodes.
Y.all('.important').addClass('highlight');

Y.one('#close-button').on('click', function () {
contentNode.hide();
});
});