diff --git a/AppKit/CPView.j b/AppKit/CPView.j index 007dadce5..3805fbeff 100644 --- a/AppKit/CPView.j +++ b/AppKit/CPView.j @@ -291,7 +291,7 @@ var CPViewFlags = { }, CPDOMDisplayServerSetStyleLeftTop(_DOMElement, NULL, _CGRectGetMinX(aFrame), _CGRectGetMinY(aFrame)); CPDOMDisplayServerSetStyleSize(_DOMElement, width, height); - _DOMElement.className = [self className]; + _DOMElement.setAttribute("data-cappuccino-view", [self className]); _DOMImageParts = []; _DOMImageSizes = [];