solid icon indicating copy to clipboard operation
solid copied to clipboard

[html] `html` template can fail to include text nodes in the output

Open trusktr opened this issue 1 year ago • 2 comments

Describe the bug

Sometimes html can fail to include text nodes in the output.

Your Example Website or App

https://playground.solidjs.com/anonymous/d10b1bee-80b9-4e43-9a24-9907ea2f7fd0

Steps to Reproduce the Bug or Issue

The output is missing the foo: .

Expected behavior

Expect to see foo: included in the output.

Screenshots or Videos

No response

Platform

n/a

Additional context

No response

trusktr avatar Sep 20 '24 06:09 trusktr

I've experienced the same issue! I've come to the conclusion, that it ignores leading text. Any text that comes after (or inside) a tag is rendered, only text at the beginning is missing.

I consider this a bug!

JeredArc avatar Oct 09 '24 09:10 JeredArc

@JeredArc .. thanks that makes a lot of sense. The other methods have no top-level that can take text (h, jsx) so this was an oversight.

ryansolid avatar Oct 09 '24 20:10 ryansolid