René's URL Explorer Experiment


Title: Removing SVG prefixes may break functionality · Issue #17 · stringham/angular-template-formatter · GitHub

Open Graph Title: Removing SVG prefixes may break functionality · Issue #17 · stringham/angular-template-formatter

X Title: Removing SVG prefixes may break functionality · Issue #17 · stringham/angular-template-formatter

Description: Namespacing SVG Elements Usually when you use an SVG element in an Angular template, you will need to prefix its name with the svg: namespace prefix, as is done here: example:

X Description: Namespacing SVG Elements Usually when you use an SVG element in an Angular template, you will need to prefix its name with the svg: namespace prefix, as is done here: example: <svg viewBox="...

Opengraph URL: https://github.com/stringham/angular-template-formatter/issues/17

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Removing SVG prefixes may break functionality","articleBody":"> Namespacing\r\n> \r\n>  SVG Elements\r\n> Usually when you use an SVG element in an Angular template, you will need to prefix its name with the svg: namespace prefix, as is done here:\r\n> \r\n> example:\r\n> ```\r\n> \u003csvg viewBox=\"0 0 250 250\">\r\n>   \u003csvg:polygon points=\"125,30 125,30 125,30 31.9,63.2 46.1,186.3 125,230 125,230 125,230 203.9,186.3 218.1,63.2\" />\r\n>   \u003csvg:polygon points=\"125,30 125,52.2 125,52.1 125,153.4 125,153.4 125,230 125,230 203.9,186.3 218.1,63.2 125,30\" />\r\n>   \u003csvg:path d=\"M125,52.1L66.8,182.6h0h21.7h0l11.7-29.2h49.4l11.7,29.2h0h21.7h0L125,52.1L125,52.1L125,52.1L125,52.1\r\n>       L125,52.1z M142,135.4H108l17-40.9L142,135.4z\"/>\r\n> \u003c/svg>\r\n> ```\r\n> This will let Angular know that it's supposed to create SVG elements instead of HTML ones.\r\n> \r\n> You may not always need this prefix. In particular, when the root \u003csvg> tag is in the same component as all of the SVG content, Angular is able to infer the correct namespace automatically. But as soon as you break that content up into multiple components, **this inference will no longer be possible**.\r\n> \r\n> For this reason, I recommend always using the namespace prefix even in cases where it's not strictly necessary. Plus, it communicates to anyone reading the template code that SVG is being used.\r\n\r\n[link to original article](https://teropa.info/blog/2016/12/12/graphics-in-angular-2.html)\r\n\r\n_Originally posted by @David-Klemenc in https://github.com/stringham/angular-template-formatter/pull/13#issuecomment-445184473_","author":{"url":"https://github.com/David-Klemenc","@type":"Person","name":"David-Klemenc"},"datePublished":"2018-12-07T10:10:36Z","url":"https://github.com/stringham/angular-template-formatter/issues/17"}

react-profiling0
react-import-mapreact,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-controllervoltron_issues_fragments
route-actionissue_layout
fetch-noncev2:97d3b31a-53f6-a6a2-dab8-686bf891cff8
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-id8F54:2E7EBB:2310928:2C4F029:6B017725
html-safe-noncef69c763823d8a8b0de1185079e2585d8e145e8c2ad8d732ee457a7c784f94b39
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RjU0OjJFN0VCQjoyMzEwOTI4OjJDNEYwMjk6NkIwMTc3MjUiLCJ2aXNpdG9yX2lkIjoiNjEwNzkyODkwNTMyMTExNzQ3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac621b7c4472414a26cc1a3627eec1cc3f4a28008887195466cbdfcbc3e3f7314a
hovercard-subject-tagissue:388586526
github-keyboard-shortcutsrepository,issues,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/issues_fragments/issue_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/stringham/angular-template-formatter/17/issue_layout
twitter:imagehttps://opengraph.githubassets.com/95eddb611a7df4915f6763dd180860c91fca64b774ab7d218e387228a086a252/stringham/angular-template-formatter/issues/17
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/95eddb611a7df4915f6763dd180860c91fca64b774ab7d218e387228a086a252/stringham/angular-template-formatter/issues/17
og:image:altNamespacing SVG Elements Usually when you use an SVG element in an Angular template, you will need to prefix its name with the svg: namespace prefix, as is done here: example: