This repository was archived by the owner on Apr 12, 2024. It is now read-only.
This repository was archived by the owner on Apr 12, 2024. It is now read-only.
"invalid value for attribute" errors at startup for svg elements #1050
Closed
Description
Using chrome Version "20.0.1132.27 beta" (but also seen on other versions)
For this html (obviously it's simplified from the original):
<html ng-app>
<head>
<script src="http://code.angularjs.org/angular-1.0.0rc12.min.js"></script>
</head>
<body>
<svg xmlns="http://www.w3.org/2000/svg" version="1.1">
<rect x="{{0}}" y="{{0}}" width="{{100}}" height="{{100}}" fill="red"/>
</svg>
</body>
</html>
it draws the expected rectangle, but when I look in the javascript console I see:
Error: Invalid value for attribute x="{{0}}" bug.html:7
Error: Invalid value for attribute y="{{0}}" bug.html:7
Error: Invalid value for attribute width="{{100}}" bug.html:7
Error: Invalid value for attribute height="{{100}}" bug.html:7
that apparently come from before the values are evaluated. They seem harmless, but are distracting (the real code generates a couple of thousand such errors, due to ng-repeat -- see http://dave.whipp.name/tutorial/anti-alias.html).
Metadata
Metadata
Assignees
Labels
No labels