diff options
| author | Ben McCann | 2013-09-10 04:47:23 -0700 |
|---|---|---|
| committer | Brian Ford | 2013-10-01 16:17:07 -0700 |
| commit | e773029717f11d727af609a139b173a135c79eab (patch) | |
| tree | 3cdd9fe59373cab6465cff1bc6cae900e7316a89 | |
| parent | 8e1276c011b33b90af47494dc5e76baf86468a5a (diff) | |
| download | angular.js-e773029717f11d727af609a139b173a135c79eab.tar.bz2 | |
feat($compile): support tel: links in a[href]
Allow `tel:` links so that click-to-call works in mobile browsers
| -rw-r--r-- | src/ng/compile.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ng/compile.js b/src/ng/compile.js index 2aec8fcd..2dd0e6ea 100644 --- a/src/ng/compile.js +++ b/src/ng/compile.js @@ -153,7 +153,7 @@ function $CompileProvider($provide) { Suffix = 'Directive', COMMENT_DIRECTIVE_REGEXP = /^\s*directive\:\s*([\d\w\-_]+)\s+(.*)$/, CLASS_DIRECTIVE_REGEXP = /(([\d\w\-_]+)(?:\:([^;]+))?;?)/, - aHrefSanitizationWhitelist = /^\s*(https?|ftp|mailto|file):/, + aHrefSanitizationWhitelist = /^\s*(https?|ftp|mailto|tel|file):/, imgSrcSanitizationWhitelist = /^\s*(https?|ftp|file):|data:image\//; // Ref: http://developers.whatwg.org/webappapis.html#event-handler-idl-attributes |
