Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

167
Vistas
Html element interpreted as text

I have a problem with some Html tags. They are interpreted as text i think.

In my JS file I have printed the elements into the console:

console.log(groessenTrList[i]);
console.log(groessenTrList[i].firstChild);

The chrome developer tool shows this:

[1]: https://i.stack.imgur.com/dqqaQ.png

When I print the whole element to the console everything seems to be ok. The children are fine and the html seems to be right.

But when I print the child element its interpreted as text and i dont know why.

The whole html comes from a spring backend

@PostMapping("/editArtikel")
@ResponseBody
public String editArtikel(String artikelID, HttpSession session) {
    ...
    String htmlToPrint = doc.outerHtml();
    return htmlToPrint;
}

I use Jsoup to create the html code.

Can you please help me ?

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda