pub fn set_data(doc: &mut BaseDocument, node: NodeId, text: &str) -> Result<()>Expand description
characterData.data = text.
Applies to any node the mutator will set text on: text nodes and comments. Upstream does not restrict it to character data either, and on anything else it is a no-op rather than an error.
A comment write is inert by design. A comment generates no layout box, so
this schedules no damage and no relayout, which is asserted in
blitz-dom’s own setting_a_comments_data_does_not_dirty_layout.