From e773029717f11d727af609a139b173a135c79eab Mon Sep 17 00:00:00 2001 From: Ben McCann Date: Tue, 10 Sep 2013 04:47:23 -0700 Subject: [PATCH] feat($compile): support tel: links in a[href] Allow `tel:` links so that click-to-call works in mobile browsers --- src/ng/compile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ng/compile.js b/src/ng/compile.js index 2aec8fcd07bb..2dd0e6ea9699 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