@serenity-is/corelib / inNamespaceURI

Function: inNamespaceURI()

inNamespaceURI(namespaceURI, children): ComponentChildren

Defined in: ../domwise/dist/index.d.ts:2381

Executes a children factory within a specific namespace URI context. The namespace is temporarily set for the duration of the call and restored afterwards.

Parameters

namespaceURI

string

The namespace URI to use, or null for HTML namespace.

children

() => ComponentChildren

A factory function that returns children to be created in the given namespace.

Returns

ComponentChildren

The children produced by the factory.