HtmlElement.InsertAdjacentElement 中已重命名参数

HtmlElement.InsertAdjacentElement(HtmlElementInsertionOrientation, HtmlElement) 参数 orient 已重命名为 orientation

以前的行为

HtmlElement.InsertAdjacentElement(HtmlElementInsertionOrientation, HtmlElement)的调用以前包括orient参数:

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

新行为

新参数名称 orientation

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

引入的版本

.NET 10

中断性变更的类型

此更改可能会影响 源兼容性

更改原因

参数名称已更改,以提供更具描述性的名称。

编辑具有命名参数的任何调用以使用新参数名称或删除参数名称:

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

受影响的 API