var el = Y.one("#myid"); var native = el.getDOMNode();
If you cannot be sure that '#myid' is in the DOM, then you must first check for null. YUI.one does not work like in jQuery.
var el = Y.one("#myid"), native; if (el !== null) { native = el.getDOMNode(); }
source share