Implement XML::LibXML::Element->appendTextNode
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Idoneità per principianti
- 70/100
Direzione di ricerca
Inizia in src/main/perl/lib/XML/LibXML.pm, dove è definita l'interfaccia XML::LibXML::Element, e confronta con i metodi vicini di testo/figlio già implementati lì per vedere come sono rappresentati i nodi. Rispecchia la semantica di appendTextNode di XML::LibXML di sistema, poi aggiungi un test mirato (incluso il percorso XML::LibXML::Ferry::create) ed eseguilo con Perl, la JVM e i backend dell'interprete. Fatto significa che can("appendTextNode") della sonda è vero e che t/ferry-write.t di Ferry v0.8.5 esegue tutti i 22 test fino al completamento.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Summary
XML::LibXML::Element in the bundled PerlOnJava compatibility implementation does not provide appendTextNode. Pure-Perl XML::LibXML::Ferry calls this method when creating an element with text, so XML-LibXML-Ferry v0.8.5 aborts in t/ferry-write.t on both PerlOnJava backends.
Reproduction
use XML::LibXML;
my $doc = XML::LibXML::Document->new('1.0', 'UTF-8');
my $element = $doc->createElement('Root');
$element->appendTextNode('text');
Under the PerlOnJava bundled XML::LibXML, this dies with:
Can't locate object method "appendTextNode" via package "XML::LibXML::Element"
The minimal Ferry trigger is:
use XML::LibXML::Ferry;
my $doc = XML::LibXML::Document->new('1.0', 'UTF-8');
my $root = $doc->createElement('Root');
$root->create('Child', 'text');
XML::LibXML::Ferry::create calls $el->appendTextNode($text) at its element-creation path. The bundled src/main/perl/lib/XML/LibXML.pm defines the XML::LibXML::Element interface but has no appendTextNode implementation. System XML::LibXML provides the method, as shown by the complete upstream suite passing under system Perl.
Evidence
- Distribution:
XML-LibXML-Ferryv0.8.5; CPAN run20261119-133823-51077. - PerlOnJava CPAN run:
t/ferry-write.texited 255 after 2 of 15 planned tests; remaining tests did not run becauseappendTextNodewas missing. - System Perl oracle: the full suite passed, 6 test programs and 22 tests, after installing
XML::LibXMLand its prerequisites in an isolated CPAN environment. - Focused API probe on PerlOnJava v5.44.1, source commit
94cc21a9c4e81e1c0fff4debf384efde2f758f93:can("appendTextNode")returned false on both the JVM and interpreter backends. - Runtime used for the probe: Temurin Java 24.0.2 on macOS arm64.
XML::LibXMLreverse-dependency lookup: 492 unique released runtime dependants, 85 with releases in the last five years. This is ecosystem context for the prerequisite; the target Ferry distribution itself is pure Perl.
Expected behavior
The bundled XML::LibXML::Element should support appendTextNode with behavior compatible with system XML::LibXML, so Ferry can create elements containing text and its write tests can run to completion on both backends.
Acceptance criteria
- Add the missing
XML::LibXML::Elementmethod in the shared bundled implementation, matching system XML::LibXML behavior. - Add focused project-owned coverage for appending text to an element, including the Ferry creation path.
- Verify the focused tests under standard Perl, PerlOnJava JVM, and PerlOnJava interpreter backends.
- Re-run
XML-LibXML-Ferryv0.8.5 tests and confirm all 22 tests pass under PerlOnJava.
- Lingua principale
- Perl
- Stelle
- 67
- Fork
- 8
- Merge medio
- 5h 12m
- PR unite (30g)
- 131
Preparare l'ambiente
- Include un Dockerfile o un file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di fglock/PerlOnJava
-
area:cpan-port area:parser bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
fglock/PerlOnJava#2137 ·
I maintainer di solito rispondono entro 1 giorno
-
area:backend area:cpan-port area:runtime bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
fglock/PerlOnJava#2071 ·
I maintainer di solito rispondono entro 1 giorno
-
area:runtime documentation enhancement
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
fglock/PerlOnJava#1579 ·
I maintainer di solito rispondono entro 1 giorno
-
area:cpan-port bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 62/100
fglock/PerlOnJava#2157 ·
I maintainer di solito rispondono entro 1 giorno
-
area:cpan-port area:parser area:runtime bug
Difficoltà 3/5 1-2 giorni Idoneità per principianti 66/100
fglock/PerlOnJava#2156 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di fglock/PerlOnJava
Issue simili
-
Dev-output directory preparation accepts file-valued lib/include paths and fails on dangling linksApertateam-cli
Difficoltà 2/5 1-3 ore Idoneità per principianti 70/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 93/100
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 73/100
inverse-inc/packetfence#9728 ·
I maintainer di solito rispondono entro 1 giorno
-
fix(char-create): show the real reason a character is refusedForse già presa @baphomello l’ha presa 1 giorno fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
I maintainer di solito rispondono entro 1 giorno