Skip to content

.raku / Typecheck errors hanging on LibXML::Node objects #95

Description

@dwarring

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions