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.
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);
Affected APIs
Samarbeid med oss på GitHub
Du finner kilden for dette innholdet på GitHub. Der du også kan opprette og se gjennom problemer og pull-forespørsler. Hvis du vil ha mer informasjon, kan du se vår bidragsyterveiledning.