Home / Function/ isInDocument() — react Function Reference

isInDocument() — react Function Reference

Architecture documentation for the isInDocument() function in ReactInputSelection.js from the react codebase.

Entity Profile

Dependency Diagram

graph TD
  ffb94eb2_a9b7_b0b8_7a69_1e236320f487["isInDocument()"]
  61ae92ed_59ee_0d03_f7cc_6c7bd8c060f5["ReactInputSelection.js"]
  ffb94eb2_a9b7_b0b8_7a69_1e236320f487 -->|defined in| 61ae92ed_59ee_0d03_f7cc_6c7bd8c060f5
  3ffa57aa_7550_476a_22f1_45c9f6827530["restoreSelection()"]
  3ffa57aa_7550_476a_22f1_45c9f6827530 -->|calls| ffb94eb2_a9b7_b0b8_7a69_1e236320f487
  046fab93_65d4_440f_4cfc_abf155bcc832["containsNode()"]
  ffb94eb2_a9b7_b0b8_7a69_1e236320f487 -->|calls| 046fab93_65d4_440f_4cfc_abf155bcc832
  style ffb94eb2_a9b7_b0b8_7a69_1e236320f487 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

packages/react-dom-bindings/src/client/ReactInputSelection.js lines 35–41

function isInDocument(node) {
  return (
    node &&
    node.ownerDocument &&
    containsNode(node.ownerDocument.documentElement, node)
  );
}

Domain

Subdomains

Called By

Frequently Asked Questions

What does isInDocument() do?
isInDocument() is a function in the react codebase, defined in packages/react-dom-bindings/src/client/ReactInputSelection.js.
Where is isInDocument() defined?
isInDocument() is defined in packages/react-dom-bindings/src/client/ReactInputSelection.js at line 35.
What does isInDocument() call?
isInDocument() calls 1 function(s): containsNode.
What calls isInDocument()?
isInDocument() is called by 1 function(s): restoreSelection.

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free