js loop through clicked elements childnodes
<p>js loop through clicked elements childnodes
and i have error : 
Uncaught TypeError: Cannot read property 'contains' of undefined</p>

<p>I need to compare if one of them have class task-value
and i cant understand why i have the error!!!
Need Help sorry for bad English
Link to js fiddle whith code</p>

<p><a href="https://jsfiddle.net/Guntarwi/wob4kjp2/1/" rel="nofollow">Link to code on js fiddle</a></p>

<pre><code>function docClick(e) {
    var target = e.target;
    console.log(this.childNodes.length)

    for(var i = 0; i &lt; this.childNodes.length; i++){
        console.log(this.childNodes[i])

        if(this.childNodes[i].classList.contains("task-value")){
            console.log("if")
        }else{
            console.log("else")
        }
    }
</code></pre>

<p><a href="https://jsfiddle.net/Guntarwi/wob4kjp2/2/" rel="nofollow">Link UpDate whit full css/Html and Javascript</a></p>