Changes between Version 1 and Version 2 of Ticket #10291, comment 28


Ignore:
Timestamp:
Mar 5, 2014, 8:18:57 AM (8 years ago)
Author:
ido
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10291, comment 28

    v1 v2  
    3333It's still not the same behavior as other browser but, it's closer to what the user may expect.
    3434
    35 
    3635innerText cannot be used for setting the value because of some restrictions. However, it can be used for reading values and I think we should use it.
    3736
    3837The drawback of using innerText is the backward compatibility.
    3938The result of Nodelist-manipulate::text() will be slightly different in Dojo 1.9- compared to Dojo 1.10+. Is that acceptable ?
     39
     40
     41Note: the value returned by innerText change according to the node.
     42For instance:
     43{{{
     44<div>
     45        first line
     46                second line
     47                        third line
     48        fourth line
     49</div>
     50}}}
     51return
     52{{{
     53first line second line third line fourth line
     54}}}
     55While
     56{{{
     57<pre>
     58        first line
     59                second line
     60                        third line
     61        fourth line
     62</pre>
     63}}}
     64return
     65{{{
     66        first line
     67                second line
     68                        third line
     69        fourth line
     70}}}