ended3월 22일· 1 sources
About the the commandfor attribute.
commandfor 속성 사용 경험담
Why it matters
The author shares their experience using the commandfor attribute in a fully OOP-based JavaScript package where HTML elements are created programmatically. They discovered that HTMLButtonElement.commandForElement requires a DOM element object, not a string ID, which caused a TypeError. Alternatively, setAttribute('commandfor', id) can be used to assign by ID string.
1
Sources
+0
24h
—
Growth
178d
Active
commandforcommandForElementHTMLButtonElementpopoverOOP