Under OS X the markup string was returned, unlike in all the other ports,
resulting in a unit test failure, fix this.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@74540
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
wxString wxWebViewWebKit::GetSelectedText() const
{
- NSString* selection = [[m_webView selectedDOMRange] markupString];
- if (!selection) return wxEmptyString;
+ DOMRange* dr = [m_webView selectedDOMRange];
+ if ( !dr )
+ return wxString();
- return wxStringWithNSString(selection);
+ return wxStringWithNSString([dr toString]);
}
void wxWebViewWebKit::RunScript(const wxString& javascript)