# 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](/developer-guides/error-messages/runtime-html/aur0762.md): 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](/developer-guides/error-messages/runtime-html/aur0762.md) for guidance on targeting the correct host node.

## Related Errors

* [AUR0762](/developer-guides/error-messages/runtime-html/aur0762.md)
* [AUR0764](/developer-guides/error-messages/runtime-html/aur0764.md)
* [AUR0765](/developer-guides/error-messages/runtime-html/aur0765.md)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.aurelia.io/developer-guides/error-messages/runtime-html/aur0763.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
