Title: [RC5 IVY] Nested SVG doesn't work anymore · Issue #34256 · angular/angular · GitHub
Open Graph Title: [RC5 IVY] Nested SVG doesn't work anymore · Issue #34256 · angular/angular
X Title: [RC5 IVY] Nested SVG doesn't work anymore · Issue #34256 · angular/angular
Description: 🐞 bug report Affected Package I think it's in IVY .. Is this a regression? YES. It is working when you disable IVY with Angular 9, and it's working with Angular 8 (without Ivy) Description I have a project that generate a SVG to reflect ...
Open Graph Description: 🐞 bug report Affected Package I think it's in IVY .. Is this a regression? YES. It is working when you disable IVY with Angular 9, and it's working with Angular 8 (without Ivy) Description I have a...
X Description: 🐞 bug report Affected Package I think it's in IVY .. Is this a regression? YES. It is working when you disable IVY with Angular 9, and it's working with Angular 8 (without Ivy) Description ...
Opengraph URL: https://github.com/angular/angular/issues/34256
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"[RC5 IVY] Nested SVG doesn't work anymore","articleBody":"# 🐞 bug report\r\n\r\n### Affected Package\r\nI think it's in IVY .. \r\n\r\n\r\n### Is this a regression?\r\n\r\nYES.\r\nIt is working when you disable IVY with Angular 9, and it's working with Angular 8 (without Ivy)\r\n\r\n\r\n### Description\r\n\r\nI have a project that generate a SVG to reflect the state of an hydraulic powerplant. There is a root \u003cSVG> tag then Angular dynamically adds component into it, that are SVG as well.\r\n\r\nThe structure of the HTML is something like \r\n```\r\n\u003cbody>\r\n\u003cmy-app>\r\n \u003csvg>\r\n \u003cg>\r\n \u003csvg>\r\n \u003csvg>\r\n \u003crect>\u003c/rect>\r\n \u003c/svg>\r\n \u003c/svg>\r\n \u003c/g>\r\n \u003c/svg>\r\n\u003c/my-app>\r\n\u003c/body>\r\n```\r\n\r\nWith IVY enabled, you can see the svg in the inspector but it is not rendered by the browser. If you disable IVY it works.\r\n\r\n## 🔬 Minimal Reproduction\r\n\r\nSince IVY is not supported by Stackblitz, here's a repo : https://github.com/Yohandah/Nested-SVG-Angular-9-IVY \r\n\r\nSteps :\r\n\r\n- Clone the repo\r\n- Install dependencies (npm install)\r\n- run `ng serve`\r\n- You can see a blank page, but if you inspect, you will see the SVG\r\n- Cancel `ng serve`\r\n- add the following to `tsconfig.json`\r\n\r\n```\r\n\"compilerOptions\": {.....},\r\n\"angularCompilerOptions\": {\r\n \"enableIvy\": false\r\n}\r\n```\r\n- run `ng serve` \r\n- You can see the SVG produced (with your eyes, and in the inspector)\r\n\r\n## 🔥 Exception or Error\r\nthere is no error\r\n\r\n\r\n## 🌍 Your Environment\r\n\r\n**Angular Version:** \r\n\u003cpre>\u003ccode>\r\nAngular CLI: 9.0.0-rc.5\r\nNode: 12.13.1\r\nOS: win32 x64\r\n\r\nAngular: 9.0.0-rc.5\r\n... cli, common, compiler, compiler-cli, core, forms\r\n... language-service, platform-browser, platform-browser-dynamic\r\n... router\r\nIvy Workspace: Yes\r\n\r\nPackage Version\r\n-----------------------------------------------------------\r\n@angular-devkit/architect 0.900.0-rc.5\r\n@angular-devkit/build-angular 0.900.0-rc.5\r\n@angular-devkit/build-optimizer 0.900.0-rc.5\r\n@angular-devkit/build-webpack 0.900.0-rc.5\r\n@angular-devkit/core 9.0.0-rc.5\r\n@angular-devkit/schematics 9.0.0-rc.5\r\n@ngtools/webpack 9.0.0-rc.5\r\n@schematics/angular 9.0.0-rc.5\r\n@schematics/update 0.900.0-rc.5\r\nrxjs 6.5.3\r\ntypescript 3.6.4\r\nwebpack 4.41.2\r\n\r\n\u003c/code>\u003c/pre>\r\n","author":{"url":"https://github.com/Yohandah","@type":"Person","name":"Yohandah"},"datePublished":"2019-12-05T16:24:27Z","url":"https://github.com/angular/angular/issues/34256"}
| 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:122d133e-d904-eb59-1204-622fdaef83c5 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C8EA:96DDF:16ED8DC:1D0BA7A:6B0133DE |
| html-safe-nonce | b104ead691d69a9506203961d3640edd85307fde037ef5eb58f3dd7903a4a600 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOEVBOjk2RERGOjE2RUQ4REM6MUQwQkE3QTo2QjAxMzNERSIsInZpc2l0b3JfaWQiOiI4MzI3MTY5NjMyNzkyMjk0MzY2IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | d038df81e9ea38b9eb5eb5eb8b6da922c51bebe36ad7c0ae6983b0982def77fd |
| hovercard-subject-tag | issue:533456216 |
| 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/34256/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b37cda02edbab657f3f94fd1f1f7fbea66e43f0bd0b59af51a4ba270bc22648d/angular/angular/issues/34256 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b37cda02edbab657f3f94fd1f1f7fbea66e43f0bd0b59af51a4ba270bc22648d/angular/angular/issues/34256 |
| og:image:alt | 🐞 bug report Affected Package I think it's in IVY .. Is this a regression? YES. It is working when you disable IVY with Angular 9, and it's working with Angular 8 (without Ivy) Description I have a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Yohandah |
| 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