summaryrefslogtreecommitdiff
path: root/includes/external/addressbook/node_modules/parse5/dist/index.js
diff options
context:
space:
mode:
authorRaindropsSys <contact@minteck.org>2023-04-06 22:18:28 +0200
committerRaindropsSys <contact@minteck.org>2023-04-06 22:18:28 +0200
commit83354b2b88218090988dd6e526b0a2505b57e0f1 (patch)
treee3c73c38a122a78bb7e66fbb99056407edd9d4b9 /includes/external/addressbook/node_modules/parse5/dist/index.js
parent47b8f2299a483024c4a6a8876af825a010954caa (diff)
downloadpluralconnect-83354b2b88218090988dd6e526b0a2505b57e0f1.tar.gz
pluralconnect-83354b2b88218090988dd6e526b0a2505b57e0f1.tar.bz2
pluralconnect-83354b2b88218090988dd6e526b0a2505b57e0f1.zip
Updated 5 files and added 1110 files (automated)
Diffstat (limited to 'includes/external/addressbook/node_modules/parse5/dist/index.js')
-rw-r--r--includes/external/addressbook/node_modules/parse5/dist/index.js45
1 files changed, 45 insertions, 0 deletions
diff --git a/includes/external/addressbook/node_modules/parse5/dist/index.js b/includes/external/addressbook/node_modules/parse5/dist/index.js
new file mode 100644
index 0000000..f7d8273
--- /dev/null
+++ b/includes/external/addressbook/node_modules/parse5/dist/index.js
@@ -0,0 +1,45 @@
+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';
+/** @internal */
+export * as html from './common/html.js';
+/** @internal */
+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();
+}
+//# sourceMappingURL=index.js.map \ No newline at end of file