Новый курс! Каждый программист должен знать генеративный ИИ!
Попробуйте бесплатный урок0
Why is childNodes.length for each category 5 when it should be 2?
1 ответ
+ 1
Because you also have 3 text nodes
Even if (like yours) texts are not inside any element, they are still nodes