Skip to content

Commit

Permalink
Fix bug in ReadOnlyNode.compareDocumentPosition (facebook#47557)
Browse files Browse the repository at this point in the history
Summary:
Pull Request resolved: facebook#47557

Changelog: [internal]

Not published as a bugfix because this API isn't enabled in OSS yet.

Reviewed By: sammy-SC

Differential Revision: D65769326
  • Loading branch information
rubennorte authored and facebook-github-bot committed Nov 14, 2024
1 parent b4dccb5 commit cb3efad
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ uint_fast16_t compareDocumentPosition(

auto otherAncestors =
otherShadowNode.getFamily().getAncestors(*currentRevision);
if (ancestors.empty()) {
if (otherAncestors.empty()) {
return DOCUMENT_POSITION_DISCONNECTED;
}

Expand Down

0 comments on commit cb3efad

Please sign in to comment.