Skip to main content

char_data_units

Function char_data_units 

Source
fn char_data_units(it: &Interp, idx: usize) -> Vec<u16>
Expand description

CharacterData.appendData/.deleteData/.insertData/.replaceData/.substringData。 テキスト・コメントのみに意味を持つ(呼び出し元の dom_props.rs 側でガード済み)。 文字データを UTF-16 コード単位の列で得る(DOM の length・オフセットは UTF-16 コード単位。2026-11-19、 WPT dom/nodes/CharacterData-*.html)。孤立サロゲートは文字列に入らない(この処理系の文字列は UTF-8)。