Title: Formatting pipes fail in Safari · Issue #10764 · angular/angular · GitHub
Open Graph Title: Formatting pipes fail in Safari · Issue #10764 · angular/angular
X Title: Formatting pipes fail in Safari · Issue #10764 · angular/angular
Description: I'm submitting a ... (check one with "x") [x] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/an...
Open Graph Description: I'm submitting a ... (check one with "x") [x] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not submit support request...
X Description: I'm submitting a ... (check one with "x") [x] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not su...
Opengraph URL: https://github.com/angular/angular/issues/10764
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Formatting pipes fail in Safari","articleBody":"**I'm submitting a ...** (check one with \"x\")\n\n```\n[x] bug report => search github for a similar issue or PR before submitting\n[ ] feature request\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\n```\n\n**Current behavior**\n\nUsing nearly any formatting pipe, including \"percent\", causes Angular 2 to fail in Safari 9.1.1 due to missing `Intl`. Safari in iOS is also implicated.\n\nFor example, the template `\u003cp>{{0.5 | percent:'1.1-1'}}\u003c/p>` always raises an uncaught exception in Safari. Angular templates stop being rendered at this point.\n\n**Expected/desired behavior**\n\nAngular 2 formatting pipes should not raise uncaught exceptions in Safari.\n\n**Reproduction of the problem**\n\nThis bug can be reproduced by opening the following plnkr in Safari:\nhttp://plnkr.co/edit/ETQGYstBK8MF8YVF78Kj?p=preview\n\nThis bug can also be reproduced using the default `angular-cli` build:\n1. Install current Angular2 using `angular-cli`:\n \n ``` bash\n $ npm uninstall -g angular-cli && npm cache clean && npm install -g angular-cli@webpack\n $ ng new intl-bug\n ```\n2. Add the following to a template in `app.component.html`:\n \n ``` html\n \u003cp>{{0.5 | percent:'1.1-1'}}\u003c/p>\n ```\n\n**What is the expected behavior?**\n\nIt should go.\n\n**What is the motivation / use case for changing the behavior?**\n\nGoing would be good.\n\n**Please tell us about your environment:**\n- **Angular version:** 2.0.0-rc.5\n- **Browser:** Safari 9.1.1 | iOS 9.3.4 Safari\n- **Language:** TypeScript 2.0.0\n\n**Related**\n\nThis issue is related to discussion in #3333.\n","author":{"url":"https://github.com/johnchristopherjones","@type":"Person","name":"johnchristopherjones"},"datePublished":"2016-08-12T22:28:36Z","url":"https://github.com/angular/angular/issues/10764"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d9243d98-5b08-1ce9-e9b5-55297fb244dd |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB4E:1D20B7:12C44EC:17B73B1:6B015A26 |
| html-safe-nonce | d57ba083bb4f0c702c5293e48010349c29abd5f2568d4a2538179db0244e4070 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjRFOjFEMjBCNzoxMkM0NEVDOjE3QjczQjE6NkIwMTVBMjYiLCJ2aXNpdG9yX2lkIjoiMTY3OTY3MzExMDM4MDUwMTU0MiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 09b6d97637f0dec1937fdaaefe2895b0e2d217db39a7c17508d84b507a50204b |
| hovercard-subject-tag | issue:170970991 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/angular/angular/10764/issue_layout |
| twitter:image | https://opengraph.githubassets.com/d15a0f42f23dc82d3b98d2f7594d566e1bf1cb68d2d17a787f54f1bf8255693b/angular/angular/issues/10764 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/d15a0f42f23dc82d3b98d2f7594d566e1bf1cb68d2d17a787f54f1bf8255693b/angular/angular/issues/10764 |
| og:image:alt | I'm submitting a ... (check one with "x") [x] bug report => search github for a similar issue or PR before submitting [ ] feature request [ ] support request => Please do not submit support request... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | johnchristopherjones |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width