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)
committerJames Teh <jamie@jantrid.net>
Mon, 20 Sep 2010 02:14:34 +0000 (12:14 +1000)
commita98505ab38cec980f73c4019446fce7a38a4f8a6
treef2b5d936cf92997b29c2bb5fc537ede30198ae2a
parent7b513c866c53d48357cd60b17bfc2058a20e9065
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