[NodeJS][HTML] [Duplicate HTML ids]
See original GitHub issuePlatform
What platform is your issue or question related to? (Delete other platforms).
- .NET HTML
- .NET WPF
- Android
- iOS
- JavaScript
- UWP
Author or host
Host
If you’re an author, who are you sending cards to?
Version of SDK
2.7.0
Details
We’ve been looking at a way to be able to allow focus on a particular input element when a card has been loaded. We were going to do this by providing an id and then using document.getElementById()
to get the item and call focus()
on it, but we’ve run into an issue where the renderer is applying the provided id to the input item, but also to the container div around it.
Because the HTML guidance is all ids should be unique, calling document.getElementById()
will only ever get the first item it finds, which in the case of the adaptive card is the containing div, and not the input.
Is this a bug? If not, what was the reasoning behind breaking HTML guidance for this?
Issue Analytics
- State:
- Created 2 years ago
- Reactions:1
- Comments:5 (4 by maintainers)
Top GitHub Comments
@jankratochvilcz - We’re trying to get to it in May but we aren’t 100% positive that it will fit yet. If you’re willing or able to, we’d welcome you contributing the fix! 😃
No problem, I appreciate the follow-up and am glad you got everything working