aboutsummaryrefslogtreecommitdiffstats
path: root/regression
diff options
context:
space:
mode:
authorDhruv Manek2011-10-21 17:53:37 -0700
committerIgor Minar2011-10-24 23:28:36 -0700
commit163c799effd5cfadc57990f4d4127651bae3fbdb (patch)
treefada61b2b9be00609fbf1e9cf903e2a48cf3a0fb /regression
parent7da70af1aefe8a147053a6a8b0890ede4245b68a (diff)
downloadangular.js-163c799effd5cfadc57990f4d4127651bae3fbdb.tar.bz2
fix(angular.widget): Allow widgets to be styled in IE8 and below
Closes #584
Diffstat (limited to 'regression')
-rw-r--r--regression/issue-584.html24
1 files changed, 24 insertions, 0 deletions
diff --git a/regression/issue-584.html b/regression/issue-584.html
new file mode 100644
index 00000000..84e5e732
--- /dev/null
+++ b/regression/issue-584.html
@@ -0,0 +1,24 @@
+<!DOCTYPE html>
+<html xmlns:ng="http://angularjs.org" xmlns:my="http://mynamespace.org">
+ <head>
+ <style>
+ my\:time {color:#00f;display:block;border:1px solid #ccc;background-color:#ddd;}
+ </style>
+ <script src="../build/angular.js" ng:autobind></script>
+ <script>
+ angular.widget('my:time', function(compileElement){
+ compileElement.css('display', 'block');
+ return function(linkElement) {
+ function update() {
+ linkElement.text('Current time is: ' + new Date());
+ setTimeout(update, 1000);
+ }
+ update();
+ };
+ });
+ </script>
+ </head>
+ <body>
+ <my:time></my:time>
+ </body>
+</html>