Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

365
Views
¿Cómo agregar un nodo secundario usando node-html-parser?

Estoy tratando de agregar un nodo secundario usando node-html-parser de esta respuesta

mi archivo html se ve así:

 ... <tbody> <tr></tr> ... </tbody>

y la aplicación node.js:

 const parse = require('node-html-parser').parse; ... const doc = parse(fs.readFileSync('./myfile.html','utf8')); doc.querySelector("tbody").appendChild("<tr></tr>");

pero me esta dando un error:

 Cannot create property 'parentNode' on string '<tr></tr>'
about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!