Skip to content

Commit

Permalink
Corrige tratamento de tag do tipo void
Browse files Browse the repository at this point in the history
  • Loading branch information
juliomelo committed Sep 5, 2023
1 parent a2c2695 commit 9e9327e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lexml/importarDeLexML.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ function importarDeLexML(elemento, resultado) {
}
} else if (typeof elemento === 'string') {
let container = document.createElement('html');
container.innerHTML = elemento.replace(/<p\s*\/>/ig, '<P></P>'); // HTML não suporta notação <tag /> como no XML.
container.innerHTML = elemento.replace(/<([^ >]+)\s*\/>/g, '<$1></$1>'); // HTML não suporta notação <tag /> como no XML.
importarDeLexML(container.querySelector('body').children, resultado);
} else {
switch (elemento.tagName) {
Expand Down

0 comments on commit 9e9327e

Please sign in to comment.