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

250
Views
Error al ejecutar 'createElement' en 'Documento': el nombre de etiqueta proporcionado () no es un nombre válido

Estoy tratando de generar el DOM con algunos copos de nieve. Recibo este error en mi consola y no hay copos de nieve.

DOMException no detectada: no se pudo ejecutar 'createElement' en 'Documento': el nombre de etiqueta proporcionado ('< span id='flake0' style='cursor: default; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; -o-user-select: none; user-select: none;position:absolute;top:-24'>• </ span>') no es un nombre válido.

No estoy muy seguro de lo que estoy haciendo mal aquí... PHPStorm tampoco me da ninguna pista. Estoy recorriendo todos mis copos de nieve y obtienen tamaños aleatorios.

Aquí está mi código:

 var container = document.getElementById("js-container"); for (let i = 0; i <= snowMax; i++) { var content = document.createElement("<span id='flake" + i + "' style='" + snowStyles + "position:absolute;top:-" + snowMaxSize + "'>" + snowEntity + "</span>"); container.appendChild(content); }

También intenté escapar del lapso con acentos graves, pero no está ayudando.

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!