# Source code for innerhtml.bind

**URL:** <https://discourse.aurelia.io/t/source-code-for-innerhtml-bind/5075>\
**Category:** Help Requests\
**Created:** [January 24, 2023, 11:22am UTC](https://discourse.aurelia.io/t/source-code-for-innerhtml-bind/5075 "2023-01-24T11:22:29Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![m-gallesio](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/m-gallesio/32/1288_2.png) [@m-gallesio](https://discourse.aurelia.io/u/m-gallesio)\
**Post date:** [January 24, 2023, 11:22am UTC](https://discourse.aurelia.io/t/source-code-for-innerhtml-bind/5075/1 "2023-01-24T11:22:29Z")

</div>

Greetings.

May I ask where in Aurelia 1’s codebase is the source code for whatever powers `innerhtml.bind` (a custom attribute?).  
Additionally, does Aurelia provide a way to directly bind a `HTMLElement` stored in a property to the DOM?

Thank you in advance.

---

<div class="post-metadata">

**Author:** ![m-gallesio](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/m-gallesio/32/1288_2.png) [@m-gallesio](https://discourse.aurelia.io/u/m-gallesio)\
**Post date:** [January 24, 2023, 2:16pm UTC](https://discourse.aurelia.io/t/source-code-for-innerhtml-bind/5075/2 "2023-01-24T14:16:26Z")

</div>

Note: I have found an alternative option and I do not require an answer anymore. I am leaving this open in case anyone is interested.

---

<div class="post-metadata">

**Author:** ![avrahamcool](https://yyz1.discourse-cdn.com/flex027/user_avatar/discourse.aurelia.io/avrahamcool/32/368_2.png) [@avrahamcool](https://discourse.aurelia.io/u/avrahamcool)\
**Post date:** [February 16, 2023, 3:30pm UTC](https://discourse.aurelia.io/t/source-code-for-innerhtml-bind/5075/3 "2023-02-16T15:30:08Z")

</div>

as far as I know: there is no code specially for ‘innerhtml.bind’.  
the the aurelia binding mechanism takes care of the binding to all properties, and innerhtml is just another property of the HTMLElement. (the only thing to consider is the difference between properties and attributes.)

so check the code of the global binding system. you should find what you looking for.
