Skip to main content
GoodFirstPicks
DashboardIssuesReposLeaderboard

GoodFirstPicks by Leaveitblank © 2026

CreatorRequest a RepoPrivacy PolicyTerms of Service
Bug: Properties are not passed to Custom Elements that extend built-in elements | GoodFirstPicks

Bug: Properties are not passed to Custom Elements that extend built-in elements

facebook/react 10 comments 1mo ago
View on GitHub
mediumopenScope: somewhat clearSkill match: maybeTest focusedReactJavaScriptTypeScript

Why this is a good first issue

The issue involves property passing behavior in custom elements extending built-ins, with existing test cases available.

AI Summary

The issue reports that properties are not correctly passed to custom elements that extend built-in elements, while they work for autonomous custom elements. The fix would require modifying React's attribute handling for these cases, with existing test cases available for reference. The main blocker is understanding React's internal handling of custom elements and built-in element extensions.

Issue Description

React version: 19.0.0

Steps To Reproduce

  1. Define a Custom Element x-custom-link that extends the a element
  2. Render the custom element using the is attribute: <a is="x-custom-link"></a>
  3. Pass a property to the element

Link to code example: https://codesandbox.io/p/sandbox/musing-shadow-ttt8hc

The current behavior

Properties are correctly passed to autonomous custom elements but not to those that extend builtin elements.

The expected behavior

Properties are passed to custom elements that extend builtin elements as well.

GitHub Labels

Status: Unconfirmed

Want to work on this?

Claim this issue to let others know you're working on it. You'll earn 10 points when you complete it!

Risk Flags

  • requires understanding of custom elements and React's attribute handling
  • potential interaction with built-in elements
Loading labels...

Details

Points10 pts
Difficultymedium
Scopesomewhat clear
Skill Matchmaybe
Test Focusedyes