<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def textContent(self, text: str) -> None: # type: ignore """Set textContent both on this node and related browser node."""

        self._set_text_content(text)
        if self.connected:
            self._set_text_content_web(text)