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/parse5/dist/index.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/parse5/dist/index.js')
| -rw-r--r-- | vanilla/node_modules/parse5/dist/index.js | 42 |
1 files changed, 0 insertions, 42 deletions
diff --git a/vanilla/node_modules/parse5/dist/index.js b/vanilla/node_modules/parse5/dist/index.js deleted file mode 100644 index ff5b55b..0000000 --- a/vanilla/node_modules/parse5/dist/index.js +++ /dev/null @@ -1,42 +0,0 @@ -import { Parser } from './parser/index.js'; -export { defaultTreeAdapter } from './tree-adapters/default.js'; -export { /** @internal */ Parser } from './parser/index.js'; -export { serialize, serializeOuter } from './serializer/index.js'; -export { ERR as ErrorCodes } from './common/error-codes.js'; -/** @internal */ -export * as foreignContent from './common/foreign-content.js'; -export * as html from './common/html.js'; -export * as Token from './common/token.js'; -/** @internal */ -export { Tokenizer, TokenizerMode } from './tokenizer/index.js'; -// Shorthands -/** - * Parses an HTML string. - * - * @param html Input HTML string. - * @param options Parsing options. - * @returns Document - * - * @example - * - * ```js - * const parse5 = require('parse5'); - * - * const document = parse5.parse('<!DOCTYPE html><html><head></head><body>Hi there!</body></html>'); - * - * console.log(document.childNodes[1].tagName); //> 'html' - *``` - */ -export function parse(html, options) { - return Parser.parse(html, options); -} -export function parseFragment(fragmentContext, html, options) { - if (typeof fragmentContext === 'string') { - options = html; - html = fragmentContext; - fragmentContext = null; - } - const parser = Parser.getFragmentParser(fragmentContext, options); - parser.tokenizer.write(html, true); - return parser.getFragment(); -} |
