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";