This project has moved and is read-only. For the latest updates, please go here.

No-Line-Breaker Bug in 1.4.0?

Feb 27, 2011 at 12:55 PM

Hi, I am using HAP 1.4.0 with this HTML file:

<div><p>p text 1</p><p>p text 2</p></div>

The innerText property of the div node gave me a string of

p text 1p text 2
in stead of

p text 1\r\np text 2

In other words, a line breaker was missing. javascript gave the correct innerText. So I guess it's a bug?

Any one had the same problem? Any fix? Thanks in advance.

Mar 2, 2011 at 9:02 AM

It's a feature, not a bug :-)

Mar 10, 2011 at 8:23 AM

I'm joinning to this question. How to disable this bug/feature and get usual behaviour from InnerText property?? As it works everywhere.