var app = angular.module('plunker', []);
app.controller('MainCtrl', function($scope) {
$scope.name = 'Text from Angular';
$scope.bound = 'Text using ng-bind';
});
<!DOCTYPE html>
<html ng-app="plunker">
<head>
<meta charset="utf-8" />
<title>AngularJS SVG Safari Test Plunker</title>
<script>
document.write('<base href="' + document.location + '" />');
</script>
<link rel="stylesheet" href="style.css" />
<script data-require="angular.js@1.2.x" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.2.16/angular.min.js" data-semver="1.2.16"></script>
<script src="app.js"></script>
</head>
<body ng-controller="MainCtrl">
<p>Does safari get corrupted classes when using angular binding inside an SVG ?</p>
<p>if the text is blue it is working ok if red then something is wrong.</p>
<svg xmlns="http://www.w3.org/2000/svg">
<g class="title_bar">
<rect width="300px" height="100px" fill='#ffe'></rect>
<text class='title_text' y="20" x="10">Plain Text</text>
<text class='title_text' y="50" x="10">{{name}}</text>
<text class='title_text' y="80" x="10" ng-bind='bound'></text>
</g>
</svg>
</body>
</html>
/* Put your css in here */
.title_bar text {
fill: red;
font-size: 24px;
}
.title_bar text.title_text {
fill: blue;
}