Модуль:Песочница/Pok: различия между версиями

мНет описания правки
мНет описания правки
Строка 94: Строка 94:
     for _, child in ipairs(children) do
     for _, child in ipairs(children) do
         if child.id then
         if child.id then
            if not visited[child.id] then
if not visited[child.id] then
                results[#results + 1] = formatContent(child)
    results[#results + 1] = formatContent(child)
            else
end
                results[#results + 1] = '' .. child.id
            end
         elseif child["!type"] == "NestedSelector" then
         elseif child["!type"] == "NestedSelector" then
             results[#results + 1] = handleNestedSelector(child, true, visited)
             results[#results + 1] = handleNestedSelector(child, true, visited)