From c3e997168aa751792ffe3e32fc074b9609ff206f Mon Sep 17 00:00:00 2001 From: daboe01 Date: Thu, 29 May 2014 20:31:55 +0200 Subject: [PATCH] protecting document access with PLATFORM(DOM) --- AppKit/CPTextView/CPTextView.j | 2 ++ 1 file changed, 2 insertions(+) diff --git a/AppKit/CPTextView/CPTextView.j b/AppKit/CPTextView/CPTextView.j index 543fc7821..3476a2f21 100755 --- a/AppKit/CPTextView/CPTextView.j +++ b/AppKit/CPTextView/CPTextView.j @@ -1847,7 +1847,9 @@ var kDelegateRespondsTo_textShouldBeginEditing var style; if (!_caretDOM) { +#if PLATFORM(DOM) _caretDOM = document.createElement("span"); +#endif style = _caretDOM.style; style.position = "absolute"; style.visibility = "visible";