Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
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.
Recommended action
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);