Rediger

Del via


Renamed parameter in HtmlElement.InsertAdjacentElement

HtmlElement.InsertAdjacentElement(HtmlElementInsertionOrientation, HtmlElement) parameter orient was renamed to orientation.

Previous behavior

Calls to HtmlElement.InsertAdjacentElement(HtmlElementInsertionOrientation, HtmlElement) included the orient parameter:

element.InsertAdjacentElement(orient: HtmlElementInsertionOrientation.AfterEnd, newElement);

New behavior

The new parameter name is orientation.

element.InsertAdjacentElement(orientation: HtmlElementInsertionOrientation.AfterEnd, newElement);

Version introduced

.NET 10 Preview 1

Type of breaking change

This change can affect source compatibility.

Reason for change

The parameter name was changed to provide a more descriptive name.

Edit any calls with a named argument to use the new parameter name or remove the parameter name:

element.InsertAdjacentElement(orientation: HtmlElementInsertionOrientation.AfterEnd, newElement);
element.InsertAdjacentElement(HtmlElementInsertionOrientation.AfterEnd, newElement);

Affected APIs