Skip to content

Commit

Permalink
fix(marko): issue with dynamic tag name string and no renderbody
Browse files Browse the repository at this point in the history
  • Loading branch information
DylanPiercey committed Jun 8, 2021
1 parent 42c76ac commit 69e8514
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions packages/marko/src/runtime/html/AsyncStream.js
Expand Up @@ -519,9 +519,9 @@ var proto = (AsyncStream.prototype = {
if (selfClosingTags.voidElements.indexOf(tagName) !== -1) {
str += ">";
} else if (selfClosingTags.svgElements.indexOf(tagName) !== -1) {
str += " />";
str += "/>";
} else {
str += "</" + tagName + ">";
str += "></" + tagName + ">";
}

this.write(str);
Expand Down
@@ -1 +1 @@
<foo class="my-class" foo="bar">My nested content</foo>
<foo class=my-class foo=bar>My nested content</foo><world class=my-class foo=bar></world>
@@ -1,3 +1,5 @@
<${input.foo ? 'foo' : 'bar'} class="my-class" foo="bar">
My nested content
</>
</>

<${input.myTagName} class="my-class" foo="bar"/>
@@ -1,2 +1,3 @@
<FOO class="my-class" foo="bar">
"My nested content"
<WORLD class="my-class" foo="bar">

0 comments on commit 69e8514

Please sign in to comment.