var paciente = document.querySelectorAll(".paciente");
for (var i = 0; i <= paciente.length; i++) {
var peso = paciente[i].querySelector(".info-peso").textContent;
}
Sempre retorna: Uncaught TypeError: Cannot read property 'querySelector' of undefined
Um fragmento do HTML:
<tr class="paciente" >
<td class="info-nome">Paulo</td>
<td class="info-peso">100</td>
<td class="info-altura">2.00</td>
<td class="info-gordura">10</td>
<td class="info-imc">0</td>
</tr>