marko-js / marko

A declarative, HTML-based language that makes building web apps fun
https://markojs.com/
MIT License
13.35k stars 643 forks source link

Try online: whitespace lacks text for textarea #1390

Closed tigt closed 5 years ago

tigt commented 5 years ago

Marko Version: 4.18.5

Opening Firefox’s Debugger devtools tab has multiple instances of marko$4.18.5, which seems like a safe bet.

Details

The sample template is:

<pre>
  By default, pre tags have
  their whitespace preserved
</pre>
<textarea>
  Same for
  text areas!
</textarea>

Expected Behavior

I would assume this template to transform into basically its source code.

Actual Behavior

<pre>
  By default, pre tags have
  their whitespace preserved
</pre>
<textarea></textarea>

Your Environment

Steps to Reproduce

Visit https://markojs.com/try-online/?file=%2Fmarko-language-guide%2Fcomponents%2Fwhitespace&gist=

tigt commented 5 years ago

It looks like the actual Preview output does contain the text, so it’s probably a bug with the Try online editor moreso than marko itself.

tigt commented 5 years ago

Moved to marko-js/website#40