crysalead-js / dom-layer

Virtual DOM implementation.
MIT License
30 stars 1 forks source link

textarea, listing and pre server side issue #67

Closed ghost closed 9 years ago

ghost commented 9 years ago

I noticed that textarea are not rendered correctly either? It's ignored, but shouldn't the value of textarea become it context? <textarea value="jails"></textarea> should become<textarea>jails</textarea>

Same also for listing and pre

jails commented 9 years ago

Indeed can be problematic, fixed in the last master.

jails commented 9 years ago

In dom-layer the "value" attribute for <select> & <textearea> has been "introduced" to be able to simplify value handling of inputs.

But for <listing> or <pre>, "value" is not a valid attribute. You should set the content by setting the children correclty (like you do with <p>, <span> or <div>)