# AUR0763

## Error Message

`AUR0763: Trying to retrieve a custom element controller from a node, but the provided node <{{nodeName}} /> is not a custom element or containerless host.`

Where `{{nodeName}}` is the tag name (or `#comment` for comment nodes) of the provided DOM node.

## Description

This error has the same root cause as [AUR0762](https://docs.aurelia.io/developer-guides/error-messages/runtime-html/aur0762): Aurelia cannot find an associated custom element controller for the provided node.

## Example Trigger

```ts
import { CustomElement } from '@aurelia/runtime-html';

// ❌ Passing an element that is not a custom element host
const span = document.querySelector('span')!;
CustomElement.for(span); // throws AUR0763
```

## Correct Usage

See [AUR0762](https://docs.aurelia.io/developer-guides/error-messages/runtime-html/aur0762) for guidance on targeting the correct host node.

## Related Errors

* [AUR0762](https://docs.aurelia.io/developer-guides/error-messages/runtime-html/aur0762)
* [AUR0764](https://docs.aurelia.io/developer-guides/error-messages/runtime-html/aur0764)
* [AUR0765](https://docs.aurelia.io/developer-guides/error-messages/runtime-html/aur0765)
