Skip to content

Commit 32d7373

Browse files
Copilotegil
andcommitted
Fix misleading comment about incremental DOM rendering
Co-authored-by: egil <[email protected]>
1 parent 150e5df commit 32d7373

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/bunit/EventDispatchExtensions/TriggerEventDispatchExtensions.cs

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -212,9 +212,10 @@ private static bool TryGetParentFormElementSpecialCase(
212212
return formByOwner;
213213
}
214214

215-
// If GetElementById didn't work (which can happen with Blazor's incremental DOM rendering),
216-
// traverse up the DOM tree to find a common ancestor and search its children
217-
// This handles cases where the button and form are siblings or in different subtrees
215+
// If GetElementById didn't work (which can happen when AngleSharp's document ID indexing
216+
// doesn't include all elements), traverse up the DOM tree to find a common ancestor
217+
// and search its children. This handles cases where the button and form are siblings
218+
// or in different subtrees.
218219
var current = element.Parent as IElement;
219220
while (current is not null)
220221
{

0 commit comments

Comments
 (0)