function interceptDOMNodeInvoke(vnode, fnName, _targetfn, args) {
    if (fnName === 'setAttribute') {
        const [name, value] = args;
        if (name && name.startsWith(SPICE_DATA_ATTR_PREFIX)) {
            const key = name.substring(SPICE_DATA_ATTR_PREFIX.length);
            vnode.data[key] = value;
            return true;
        }
    }
}
/**
 * Intercept certain DOM calls (like setAttribute) to manipulate
 * internal Spice data.
 * 
 * @param {import('./vnode').VNode} vnode 
 * @param {string} fnName 
 * @param {Function} _targetfn 
 * @param {any[]} args 
 */
Intercept certain DOM calls (like setAttribute) to manipulate
internal Spice data.


Intercept certain DOM calls ( like setAttribute ) to manipulate internal Spice data .
function interceptDOMNodeInvoke(vnode, fnName, _targetfn, args) {
    if (fnName === 'setAttribute') {
        const [name, value] = args;
        if (name && name.startsWith(SPICE_DATA_ATTR_PREFIX)) {
            const key = name.substring(SPICE_DATA_ATTR_PREFIX.length);
            vnode.data[key] = value;
            return true;
        }
    }
}
function interceptDOMNodeInvoke ( vnode , fnName , _targetfn , args ) { if ( fnName === 'setAttribute' ) { const [ name , value ] = args ; if ( name && name . startsWith ( SPICE_DATA_ATTR_PREFIX ) ) { const key = name . substring ( SPICE_DATA_ATTR_PREFIX . length ) ; vnode . data [ key ] = value ; return true ; } } }
Intercept certain DOM calls (like setAttribute) to manipulate
 internal Spice data.
Intercept certain DOM calls ( like setAttribute ) to manipulate internal Spice data .