René's URL Explorer Experiment


Title: Problem when adding dynamically a component with g[test] selector in SVG · Issue #10404 · angular/angular · GitHub

Open Graph Title: Problem when adding dynamically a component with g[test] selector in SVG · Issue #10404 · angular/angular

X Title: Problem when adding dynamically a component with g[test] selector in SVG · Issue #10404 · angular/angular

Description: I'm submitting a ... (check one with "x") [ x ] bug report [ ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question Current ...

Open Graph Description: I'm submitting a ... (check one with "x") [ x ] bug report [ ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/...

X Description: I'm submitting a ... (check one with "x") [ x ] bug report [ ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/angu...

Opengraph URL: https://github.com/angular/angular/issues/10404

X: @github

direct link

Domain: github.com


Hey, it has json ld scripts:
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Problem when adding dynamically a component with g[test] selector in SVG","articleBody":"**I'm submitting a ...**  (check one with \"x\")\n\n[ x ] bug report\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**Current behavior**\n\nI try to add dynamically this component within SVG:\n\n```\n@Component({\n  selector: 'g[test1]',\n  template: `\n    \u003csvg:text x=\"10\" y=\"15\" fill=\"red\">I love SVG!\u003c/svg:text>\n  `\n})\nexport class Test1Comp {\n}\n```\n\nI use this approach:\n\n```\nthis.resolver.resolveComponent(Test1Comp).then((factory:ComponentFactory\u003cany>) => {\n    this.cmpRef = this.viewContainerRef.createComponent(factory);\n});\n```\n\nWhereas the corresponding content is added to the DOM, it appears that the host element (`g`) isn't a valid SVG element (perhaps the svg namespace isn't used):\n\n```\n\u003cg test1> \u003c!-- UnkownHTMLElement-->  \n  \u003ctext>...\u003c/text> \u003c!-- SVGTextElement -->\n\u003c/g>\n```\n\nThis prevents from displaying the SVG elements within the `g` one.\n\n**Expected/desired behavior**\n\nTo be able to add dynamically components within SVG with selectors like `g[test1]`.\n\n**Reproduction of the problem**\n\nSee this plunkr: http://plnkr.co/edit/6aLGnLNi0svLk4CVS9M2?p=preview.\n\n**What is the expected behavior?**\n\nI expect the added host element to be an `SVGElement` and not an `HTMLUnknownElement`.\n\n**What is the motivation / use case for changing the behavior?**\n\n**Please tell us about your environment:**\n- **Angular version:** 2.0.0-rc.4\n- **Browser:** [Chrome] \n- **Language:** [ TypeScript ] \n","author":{"url":"https://github.com/templth","@type":"Person","name":"templth"},"datePublished":"2016-07-30T12:27:51Z","url":"https://github.com/angular/angular/issues/10404"}

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:485992e5-0da0-33b1-9339-12f747715622
current-catalog-service-hash81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114
request-idB368:1D20B7:F066A4:12F7455:6B014491
html-safe-nonce882037f20fb82b33a8a535b33c1af606b946f4d5547dea6e34a8dde35a827aa2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMzY4OjFEMjBCNzpGMDY2QTQ6MTJGNzQ1NTo2QjAxNDQ5MSIsInZpc2l0b3JfaWQiOiI0MDIwODA2MDgzNDUzOTk0MTI5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacfceb98aac0591f73f655e2021209138b8dc0a1ba54849d433c391884ff148b50
hovercard-subject-tagissue:168465163
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/angular/angular/10404/issue_layout
twitter:imagehttps://opengraph.githubassets.com/34e803ad144c5afa9a3e2997b09ace6b7c6c476d719227bf1bd7c439a3722ee6/angular/angular/issues/10404
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/34e803ad144c5afa9a3e2997b09ace6b7c6c476d719227bf1bd7c439a3722ee6/angular/angular/issues/10404
og:image:altI'm submitting a ... (check one with "x") [ x ] bug report [ ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernametemplth
hostnamegithub.com
expected-hostnamegithub.com
Nonecc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c
turbo-cache-controlno-preview
go-importgithub.com/angular/angular git https://github.com/angular/angular.git
octolytics-dimension-user_id139426
octolytics-dimension-user_loginangular
octolytics-dimension-repository_id24195339
octolytics-dimension-repository_nwoangular/angular
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id24195339
octolytics-dimension-repository_network_root_nwoangular/angular
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release8c77c9e8439031ad54c75a250694842892f693e1
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-nameissues

Links:

Skip to contenthttps://github.com/angular/angular/issues/10404#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F10404
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fangular%2Fangular%2Fissues%2F10404
Sign uphttps://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fissues_fragments%2Fissue_layout&source=header-repo&source_repo=angular%2Fangular
Reloadhttps://github.com/angular/angular/issues/10404
Reloadhttps://github.com/angular/angular/issues/10404
Reloadhttps://github.com/angular/angular/issues/10404
angularhttps://github.com/angular
angularhttps://github.com/angular/angular
Codehttps://github.com/angular/angular
Issues836 (836)https://github.com/angular/angular/issues
Pull requests141 (141)https://github.com/angular/angular/pulls
Discussionshttps://github.com/angular/angular/discussions
Actionshttps://github.com/angular/angular/actions
Projectshttps://github.com/angular/angular/projects
Security and quality40 (40)https://github.com/angular/angular/security
Insightshttps://github.com/angular/angular/insights
https://github.com/angular/angular
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/10404
New issuehttps://github.com/login?return_to=https://github.com/angular/angular/issues/10404
Problem when adding dynamically a component with g[test] selector in SVGhttps://github.com/angular/angular/issues/10404#top
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
bughttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22bug%22
core: dynamic view creationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20dynamic%20view%20creation%22
cross-cutting: SVGhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22cross-cutting%3A%20SVG%22
freq2: mediumhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%22
state: confirmedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20confirmed%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
Backloghttps://github.com/angular/angular/milestone/82
https://github.com/templth
templthhttps://github.com/templth
on Jul 30, 2016https://github.com/angular/angular/issues/10404#issue-168465163
https://github.com/angular/angular/blob/master/CONTRIBUTING.md#questionhttps://github.com/angular/angular/blob/master/CONTRIBUTING.md#question
http://plnkr.co/edit/6aLGnLNi0svLk4CVS9M2?p=previewhttp://plnkr.co/edit/6aLGnLNi0svLk4CVS9M2?p=preview
Nexthttps://github.com/angular/angular/issues/10404?timeline_page=1
https://github.com/vicb
vicbhttps://github.com/vicb
on Jul 30, 2016https://github.com/angular/angular/issues/10404#issuecomment-236384870
https://github.com/templth
templthhttps://github.com/templth
on Aug 1, 2016https://github.com/angular/angular/issues/10404#issuecomment-236513482
@vicbhttps://github.com/vicb
http://plnkr.co/edit/3oUn7QYKuDvQB4R1vyQr?p=previewhttp://plnkr.co/edit/3oUn7QYKuDvQB4R1vyQr?p=preview
https://github.com/alexzuza
alexzuzahttps://github.com/alexzuza
on Aug 2, 2016https://github.com/angular/angular/issues/10404#issuecomment-236973614
https://github.com/angular/angular/blob/2.0.0-rc.4/modules/%40angular/compiler/src/compile_metadata.ts#L901https://github.com/angular/angular/blob/2.0.0-rc.4/modules/%40angular/compiler/src/compile_metadata.ts#L901
https://cloud.githubusercontent.com/assets/4223314/17337777/58d69118-58f5-11e6-9f65-b528da2bc2bc.gif
https://github.com/templth
templthhttps://github.com/templth
on Sep 7, 2016https://github.com/angular/angular/issues/10404#issuecomment-245189807
@alexzuzahttps://github.com/alexzuza
https://github.com/nlyk
nlykhttps://github.com/nlyk
on Oct 2, 2016https://github.com/angular/angular/issues/10404#issuecomment-250983327
vicbhttps://github.com/vicb
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
freq1: lowhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
severity4: brokenhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22severity4%3A%20broken%22
on Oct 2, 2016https://github.com/angular/angular/issues/10404#event-809649889
https://github.com/born2net
born2nethttps://github.com/born2net
on Nov 1, 2016https://github.com/angular/angular/issues/10404#issuecomment-257669874
https://github.com/abrule
abrulehttps://github.com/abrule
on Jan 31, 2017https://github.com/angular/angular/issues/10404#issuecomment-276422921
https://github.com/dions00
dions00https://github.com/dions00
on Jun 20, 2017https://github.com/angular/angular/issues/10404#issuecomment-309843369
https://github.com/DingWeizhe
DingWeizhehttps://github.com/DingWeizhe
on Jul 8, 2017https://github.com/angular/angular/issues/10404#issuecomment-313825690
https://github.com/dions00
dions00https://github.com/dions00
on Jul 18, 2017https://github.com/angular/angular/issues/10404#issuecomment-316055771
https://github.com/oDDis001
oDDis001https://github.com/oDDis001
on Jul 28, 2017https://github.com/angular/angular/issues/10404#issuecomment-318772057
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
freq2: mediumhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%22
state: confirmedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20confirmed%22
triage #1https://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22triage%20%231%22
freq1: lowhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq1%3A%20low%22
on May 26, 2020https://github.com/angular/angular/issues/10404#event-3372486325
jelbournhttps://github.com/jelbourn
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
severity3: brokenhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22severity3%3A%20broken%22
on Oct 1, 2020https://github.com/angular/angular/issues/10404#event-3830252849
https://github.com/jessicajaniuk
jessicajaniukhttps://github.com/jessicajaniuk
on Oct 23, 2020https://github.com/angular/angular/issues/10404#issuecomment-715529851
https://github.com/Nathaniellsfreak
Nathaniellsfreakhttps://github.com/Nathaniellsfreak
on Jan 4, 2021https://github.com/angular/angular/issues/10404#issuecomment-754080979
https://stackblitz.com/edit/angular-bgsjqu?file=src%2Fapp%2Fapp.module.tshttps://stackblitz.com/edit/angular-bgsjqu?file=src%2Fapp%2Fapp.module.ts
https://github.com/matndev
matndevhttps://github.com/matndev
on Jan 16, 2021https://github.com/angular/angular/issues/10404#issuecomment-761670806
AndrewKushnirhttps://github.com/AndrewKushnir
triage #1https://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22triage%20%231%22
on Mar 15, 2022https://github.com/angular/angular/issues/10404#event-6239501601
pkozlowski-opensourcehttps://github.com/pkozlowski-opensource
bughttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22bug%22
on Jan 21, 2025https://github.com/angular/angular/issues/10404#event-16016020090
https://github.com/ChristofferGersen
ChristofferGersenhttps://github.com/ChristofferGersen
on Mar 6, 2025https://github.com/angular/angular/issues/10404#issuecomment-2703996585
#10404 (comment)https://github.com/angular/angular/issues/10404#issuecomment-605433409
bef0c66https://github.com/angular/angular/commit/bef0c664b231dcf2963f60a17c6e38893eaaa27f
https://github.com/davidbusuttil
davidbusuttilhttps://github.com/davidbusuttil
on Feb 1, 2026https://github.com/angular/angular/issues/10404#issuecomment-3831043659
JeanMechehttps://github.com/JeanMeche
Enhance ViewContainerRef.createComponent to cater for SVG elements and beyond #66893https://github.com/angular/angular/issues/66893
on Feb 3, 2026https://github.com/angular/angular/issues/10404#event-22508987636
https://github.com/davidbusuttil
davidbusuttilhttps://github.com/davidbusuttil
on Feb 3, 2026https://github.com/angular/angular/issues/10404#issuecomment-3843676559
Sign up for freehttps://github.com/signup?return_to=https://github.com/angular/angular/issues/10404
Sign in to commenthttps://github.com/login?return_to=https://github.com/angular/angular/issues/10404
P3An issue that is relevant to core functions, but does not impede progress. Important, but not urgenthttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22P3%22
area: coreIssues related to the framework runtimehttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22area%3A%20core%22
bughttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22bug%22
core: dynamic view creationhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22core%3A%20dynamic%20view%20creation%22
cross-cutting: SVGhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22cross-cutting%3A%20SVG%22
freq2: mediumhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22freq2%3A%20medium%22
state: confirmedhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22state%3A%20confirmed%22
type: bug/fixhttps://github.com/angular/angular/issues?q=state%3Aopen%20label%3A%22type%3A%20bug%2Ffix%22
BacklogNo due datehttps://github.com/angular/angular/milestone/82
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.