All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.module-min.cache.js Maven / Gradle / Ivy

The newest version!
import{NodeCache}from"./type.js";import{idl_attributes}from"./factory.js";const regex_css=/[^;:]+/g,regex_class=/ +/;export function setText(a,b){let c,d,e=a._mkc;e?d=e._t:a._mkc=e={},d===b?!1:(!1,!1,e._t=b,e._h=null,c=a.firstChild,c?c.nodeValue=b:a.appendChild(document.createTextNode(b)))}export function getText(a){let b,c,d=a._mkc;return d?c=d._t:a._mkc=d={},"string"!=typeof c&&(!1,!1,b=a.firstChild,d._t=c=b?b.nodeValue:""),c}export function setAttribute(a,b,c){let d=a._mkc;if(d||(a._mkc=d={}),"object"==typeof b)for(let c in b)_setAttribute(a,c,b[c],d);else _setAttribute(a,b,c,d)}function _setAttribute(a,b,c,d){d["_a"+b]===c?!1:(!1,!1,d["_a"+b]=c,idl_attributes[b]?a[b]=c:!1===c?a.removeAttribute(b):a.setAttribute(b,c))}export function removeAttribute(a,b){let c=a._mkc;if(c||(a._mkc=c={}),"object"==typeof b)for(let d=0;d




© 2015 - 2025 Weber Informatics LLC | Privacy Policy