diff options
| author | Adam Mathes <adam@adammathes.com> | 2026-02-14 14:46:37 -0800 |
|---|---|---|
| committer | Adam Mathes <adam@adammathes.com> | 2026-02-14 14:46:37 -0800 |
| commit | afa87af01c79a9baa539f2992d32154d2a4739bd (patch) | |
| tree | 92c7416db734270a2fee1d72ee9cc119379ff8e1 /vanilla/node_modules/@acemir/cssom/lib/CSSNamespaceRule.js | |
| parent | 3b927e84d200402281f68181cd4253bc77e5528d (diff) | |
| download | neko-afa87af01c79a9baa539f2992d32154d2a4739bd.tar.gz neko-afa87af01c79a9baa539f2992d32154d2a4739bd.tar.bz2 neko-afa87af01c79a9baa539f2992d32154d2a4739bd.zip | |
task: delete vanilla js prototype\n\n- Removed vanilla/ directory and web/dist/vanilla directory\n- Updated Makefile, Dockerfile, and CI workflow to remove vanilla references\n- Cleaned up web/web.go to remove vanilla embed and routes\n- Verified build and tests pass\n\nCloses NK-2tcnmq
Diffstat (limited to 'vanilla/node_modules/@acemir/cssom/lib/CSSNamespaceRule.js')
| -rw-r--r-- | vanilla/node_modules/@acemir/cssom/lib/CSSNamespaceRule.js | 103 |
1 files changed, 0 insertions, 103 deletions
diff --git a/vanilla/node_modules/@acemir/cssom/lib/CSSNamespaceRule.js b/vanilla/node_modules/@acemir/cssom/lib/CSSNamespaceRule.js deleted file mode 100644 index b48ef89..0000000 --- a/vanilla/node_modules/@acemir/cssom/lib/CSSNamespaceRule.js +++ /dev/null @@ -1,103 +0,0 @@ -//.CommonJS -var CSSOM = { - CSSRule: require("./CSSRule").CSSRule, - CSSStyleSheet: require("./CSSStyleSheet").CSSStyleSheet -}; -///CommonJS - - -/** - * @constructor - * @see https://drafts.csswg.org/cssom/#the-cssnamespacerule-interface - */ -CSSOM.CSSNamespaceRule = function CSSNamespaceRule() { - CSSOM.CSSRule.call(this); - this.__prefix = ""; - this.__namespaceURI = ""; -}; - -CSSOM.CSSNamespaceRule.prototype = Object.create(CSSOM.CSSRule.prototype); -CSSOM.CSSNamespaceRule.prototype.constructor = CSSOM.CSSNamespaceRule; - -Object.setPrototypeOf(CSSOM.CSSNamespaceRule, CSSOM.CSSRule); - -Object.defineProperty(CSSOM.CSSNamespaceRule.prototype, "type", { - value: 10, - writable: false -}); - -Object.defineProperty(CSSOM.CSSNamespaceRule.prototype, "cssText", { - get: function() { - return "@namespace" + (this.prefix && " " + this.prefix) + " url(\"" + this.namespaceURI + "\");"; - } -}); - -Object.defineProperty(CSSOM.CSSNamespaceRule.prototype, "prefix", { - get: function() { - return this.__prefix; - } -}); - -Object.defineProperty(CSSOM.CSSNamespaceRule.prototype, "namespaceURI", { - get: function() { - return this.__namespaceURI; - } -}); - - -/** - * NON-STANDARD - * Rule text parser. - * @param {string} cssText - */ -Object.defineProperty(CSSOM.CSSNamespaceRule.prototype, "parse", { - value: function(cssText) { - var newPrefix = ""; - var newNamespaceURI = ""; - - // Remove @namespace and trim - var text = cssText.trim(); - if (text.indexOf('@namespace') === 0) { - text = text.slice('@namespace'.length).trim(); - } - - // Remove trailing semicolon if present - if (text.charAt(text.length - 1) === ';') { - text = text.slice(0, -1).trim(); - } - - // Regex to match valid namespace syntax: - // 1. [optional prefix] url("...") or [optional prefix] url('...') or [optional prefix] url() or [optional prefix] url(unquoted) - // 2. [optional prefix] "..." or [optional prefix] '...' - // The prefix must be a valid CSS identifier (letters, digits, hyphens, underscores, starting with letter or underscore) - var re = /^(?:([a-zA-Z_][a-zA-Z0-9_-]*)\s+)?(?:url\(\s*(?:(['"])(.*?)\2\s*|([^)]*?))\s*\)|(['"])(.*?)\5)$/; - var match = text.match(re); - - if (match) { - // If prefix is present - if (match[1]) { - newPrefix = match[1]; - } - // If url(...) form with quotes - if (typeof match[3] !== "undefined") { - newNamespaceURI = match[3]; - } - // If url(...) form without quotes - else if (typeof match[4] !== "undefined") { - newNamespaceURI = match[4].trim(); - } - // If quoted string form - else if (typeof match[6] !== "undefined") { - newNamespaceURI = match[6]; - } - - this.__prefix = newPrefix; - this.__namespaceURI = newNamespaceURI; - } else { - throw new DOMException("Invalid @namespace rule", "InvalidStateError"); - } - } -}); -//.CommonJS -exports.CSSNamespaceRule = CSSOM.CSSNamespaceRule; -///CommonJS |
