4 ms·
The (.log js/console (dom/getElement "query")) command returns "null" instead of a DOM element. Curiously, manually running the equivalent command in the Chrome
by olifante 13y ago
The (.log js/console (dom/getElement "query")) command returns "null" instead of a DOM element. Curiously, manually running the equivalent command in the Chrome console works as expected:
> goog.dom.getElement
function (element) {
return goog.isString(element) ?
document.getElementById(element) : element;
}
> goog.dom.getElement("query")
<input id="query" type="text">