<ul>
<li proto>{{tema}}
</ul>
(...)
<ul id=oktatok>
<li proto="{{oktato}}" class="column center m3">{{oktato}}
<div class="avatar"><img src="csaj.png"></div>
<h6 >{{oktato}}</h6>
</li>
</ul>
With the first UL-node JS see LI-element's parentNode, but with the second one does not. :(
I can not understand, why. Both are the same structure ( ul->li ), so it is weird. However if I call .parentNode in the browser's console, there I get for the second one too; but in the page' script not.
Thank you for any explanation or solution.