Есть html:
<table id="table"><template></template></table>
Я задал такую конструкцию:
function gId(id){return document.getElementById(id)}
Node.prototype.qS = function(s){return this.querySelector(s)}
В коде пишу:
var t=gId('table');
console.log(t.qS("template"));
выдает ошибку:
TypeError: t.qS is not a function
где я ошибаюсь?