marko-js / website

The markojs.com website
http://markojs.com
MIT License
37 stars 25 forks source link

Try online: whitespace lacks text for textarea #40

Closed tigt closed 3 years ago

tigt commented 4 years ago

Moved from marko-js/marko#1390 because this seems to be a site-specific bug, not with marko the library proper.

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=

DylanPiercey commented 3 years ago

Looks to be fixed now https://markojs.com/try-online/?file=%2Fcomponents%2Fwhitespace%2Findex.marko