The following is attempting to iterate a mix of LibXML::Text and LibXML::Element nodes as LibXML::Element. It hangs rather than producing a typecheck failure.
use LibXML::Document;
use LibXML::Element;
my LibXML::Document $doc .= parse: q:to<END>;
<root>
Some text
<anElem/>
More text
</root>
END
for $doc.root.childNodes -> LibXML::Element $elem { .Str }
Observed in raku-community-modules/Spreadsheet-XLSX#12.
The following is attempting to iterate a mix of LibXML::Text and LibXML::Element nodes as LibXML::Element. It hangs rather than producing a typecheck failure.
Observed in raku-community-modules/Spreadsheet-XLSX#12.