# Can the Shadow Input DOMs be modified to show an ID?

**URL:** <https://forums.ankiweb.net/t/can-the-shadow-input-doms-be-modified-to-show-an-id/9140>\
**Category:** Suggestions\
**Created:** [April 10, 2021, 1:09am UTC](https://forums.ankiweb.net/t/can-the-shadow-input-doms-be-modified-to-show-an-id/9140 "2021-04-10T01:09:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SrcRr](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@SrcRr](https://forums.ankiweb.net/u/SrcRr)\
**Post date:** [April 10, 2021, 1:09am UTC](https://forums.ankiweb.net/t/can-the-shadow-input-doms-be-modified-to-show-an-id/9140/1 "2021-04-10T01:09:50Z")

</div>

Is there a way for the shadow dom input fields to be focusable?  
A little backstory…I’m fixing the anki-editor-autocomplete ([GitHub - src-r-r/anki-editor-autocomplete at 20201WW14\_fix-for-anki-2.1.43](https://github.com/src-r-r/anki-editor-autocomplete/tree/20201WW14_fix-for-anki-2.1.43) for reference).

Everything works beautifully up until I need to fill in the autocompleted value. There’s a problem. The input field is within the shadow dom, which means that I can’t select it as a value. Checking out the HTML source code I see there is nothing by which to identify the fields.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/anki2/original/2X/f/fe6e2a0d7b0fa3ff8f92a3b511fb877bc95543d1.png)

This can be seen here: [anki-editor-autocomplete/autocompletion.js at 20201WW14\_fix-for-anki-2.1.43 · src-r-r/anki-editor-autocomplete · GitHub](https://github.com/src-r-r/anki-editor-autocomplete/blob/20201WW14_fix-for-anki-2.1.43/anki_editor_autocomplete/assets/autocompletion.js#L29)

So this plugin is essentially broken since I can’t fetch the field. The code works beautifully in the console if I set `field` to the `anki-editable` that I copy to the console. I can focus the the field and set it to whatever I want.

Was there something changed in Anki 2 that I’m missing? Or is there a way to add an `id` field, or a function to the shadow dom to allow this functionality?

Thanks,

Jordan
