OSDN Git Service

MSHTML VBufBackend: filter all whitespace from text nodes so that there is no whitesp...
authorMichael Curran <mick@kulgan.net>
Mon, 20 Sep 2010 02:14:34 +0000 (12:14 +1000)
committerMichael Curran <mick@kulgan.net>
Mon, 20 Sep 2010 02:14:34 +0000 (12:14 +1000)
commitf027b5607f34d897f3616095d4b5b408689b2615
tree399657221e46d4cd28f22715f25593323297d9d5
parent83df914c1b198a3a013c705f658c0127400a1d93
MSHTML VBufBackend: filter all whitespace from text nodes so that there is no whitespace at the beginning or end of a node, and all whitespace between non-whitespace is collapsed down to one space character. This stops many annoying blank lines appearing in virtualBuffers of Internet Explorer 9 documents. The reason for the extra whitespace in Internet Explorer 9 is: IHTMLDOMTextNode::get_data in Internet Explorer 9 gives back text including *all* whitespace existing in the source markup (including simple linebreaks to make the html more readable), where as previous Internet Explorer versions did not contain this whitespace.
source/NVDAHelper/vbufBackends/mshtml/mshtml.cpp
source/NVDAHelper/vbufBackends/mshtml/mshtml.h