title: Cannot read properties of undefined (reading 'tagName')
body: <p>I don't know why it's returning error with tagName. is subLabel wrong?</p>
  <pre><code>for (var ind = 0; ind &lt; target.length; ind++)
      {
          var target = target[ind]
          for (var ind; ind &lt; target.childNodes.length; ind++);
          {
              const subLabel = target.childNodes[ind];
              if (subLabel.tagName == &quot;SPAN&quot; || subLabel.tagName == &quot;LI&quot;) //error line
              {
                  //do something with label
              }
              typeDisplay(subLabel);
          }  
      }
  </code></pre>