/third_party/parse5/packages/parse5/lib/serializer/ |
D | index.ts | 3 import type { TreeAdapter, TreeAdapterTypeMap } from '../tree-adapters/interface'; 28 function isVoidElement<T extends TreeAdapterTypeMap>(node: T['node'], options: InternalOptions<T>):… 36 export interface SerializerOptions<T extends TreeAdapterTypeMap> { 52 type InternalOptions<T extends TreeAdapterTypeMap> = Required<SerializerOptions<T>>; 78 export function serialize<T extends TreeAdapterTypeMap = DefaultTreeAdapterMap>( 110 export function serializeOuter<T extends TreeAdapterTypeMap = DefaultTreeAdapterMap>( 118 function serializeChildNodes<T extends TreeAdapterTypeMap>( 141 function serializeNode<T extends TreeAdapterTypeMap>(node: T['node'], options: InternalOptions<T>):… 158 function serializeElement<T extends TreeAdapterTypeMap>(node: T['element'], options: InternalOption… 166 function serializeAttributes<T extends TreeAdapterTypeMap>( [all …]
|
/third_party/parse5/packages/parse5/lib/parser/ |
D | index.ts | 19 import type { TreeAdapter, TreeAdapterTypeMap } from '../tree-adapters/interface.js'; 78 export interface ParserOptions<T extends TreeAdapterTypeMap> { 122 export class Parser<T extends TreeAdapterTypeMap> implements TokenHandler, StackHandler<T> { 160 …public static parse<T extends TreeAdapterTypeMap>(html: string, options?: ParserOptions<T>): T['do… 168 public static getFragmentParser<T extends TreeAdapterTypeMap>( 1206 function aaObtainFormattingElementEntry<T extends TreeAdapterTypeMap>( 1227 function aaObtainFurthestBlock<T extends TreeAdapterTypeMap>( 1255 function aaInnerLoop<T extends TreeAdapterTypeMap>( 1294 function aaRecreateElementFromEntry<T extends TreeAdapterTypeMap>( 1308 function aaInsertLastNodeInCommonAncestor<T extends TreeAdapterTypeMap>( [all …]
|
D | formatting-element-list.ts | 2 import type { TreeAdapter, TreeAdapterTypeMap } from '../tree-adapters/interface'; 16 export interface ElementEntry<T extends TreeAdapterTypeMap> { 22 export type Entry<T extends TreeAdapterTypeMap> = MarkerEntry | ElementEntry<T>; 27 export class FormattingElementList<T extends TreeAdapterTypeMap> {
|
D | open-element-stack.ts | 2 import type { TreeAdapter, TreeAdapterTypeMap } from '../tree-adapters/interface'; 44 export interface StackHandler<T extends TreeAdapterTypeMap> { 50 export class OpenElementStack<T extends TreeAdapterTypeMap> {
|
D | parser-location-info.test.ts | 3 import { type ParserOptions, type TreeAdapterTypeMap, parse, parseFragment } from 'parse5'; alias 11 …oParserTests('location-info-parser', (input: string, opts: ParserOptions<TreeAdapterTypeMap>) => ({
|
D | open-element-stack.test.ts | 4 import type { TreeAdapterTypeMap } from '../tree-adapters/interface'; 17 function createElement(tagName: string, namespaceURI = NS.HTML): TreeAdapterTypeMap['element'] {
|
/third_party/parse5/test/utils/ |
D | generate-parsing-tests.ts | 1 import type { ParserOptions, TreeAdapter, TreeAdapterTypeMap, ParserError } from 'parse5'; 9 export interface TreeConstructionTestData<T extends TreeAdapterTypeMap> extends DatFile<T> { 15 export function loadTreeConstructionTestData<T extends TreeAdapterTypeMap>( 64 interface ParseMethodOptions<T extends TreeAdapterTypeMap> extends ParserOptions<T> { 68 interface ParseResult<T extends TreeAdapterTypeMap> { 73 type ParseMethod<T extends TreeAdapterTypeMap> = ( 78 function createParsingTest<T extends TreeAdapterTypeMap>( 142 parse: ParseMethod<TreeAdapterTypeMap> 152 createParsingTest<TreeAdapterTypeMap>(test, treeAdapter, parse, {
|
D | generate-serializer-tests.ts | 3 import { type TreeAdapterTypeMap, type SerializerOptions, parse } from 'parse5'; alias 10 document: TreeAdapterTypeMap['document'], 11 opts: SerializerOptions<TreeAdapterTypeMap> 17 options?: SerializerOptions<TreeAdapterTypeMap>;
|
D | parse-dat-file.ts | 1 import { html, type TreeAdapterTypeMap, type TreeAdapter } from 'parse5'; alias 3 function createFragmentContext<T extends TreeAdapterTypeMap>( 27 export interface DatFile<T extends TreeAdapterTypeMap> { 37 export function parseDatFile<T extends TreeAdapterTypeMap>(testSet: string, treeAdapter: TreeAdapte…
|
D | serialize-to-dat-file-format.ts | 1 import { html, type TreeAdapter, type TreeAdapterTypeMap, type Token } from 'parse5'; alias 7 function getElementSerializedNamespaceURI<T extends TreeAdapterTypeMap>( 21 function serializeNodeList<T extends TreeAdapterTypeMap>( 79 export function serializeToDatFileFormat<T extends TreeAdapterTypeMap>(
|
D | generate-location-info-parser-tests.ts | 4 import { type TreeAdapterTypeMap, type TreeAdapter, type ParserOptions, type Token, serializeOuter … alias 14 function walkTree<T extends TreeAdapterTypeMap>( 118 …parse: (html: string, opts: ParserOptions<TreeAdapterTypeMap>) => { node: TreeAdapterTypeMap['node…
|
/third_party/parse5/packages/parse5/lib/ |
D | index.ts | 4 import type { TreeAdapterTypeMap } from './tree-adapters/interface.js'; 7 export type { TreeAdapter, TreeAdapterTypeMap } from './tree-adapters/interface.js'; 40 export function parse<T extends TreeAdapterTypeMap = DefaultTreeAdapterMap>( 70 export function parseFragment<T extends TreeAdapterTypeMap = DefaultTreeAdapterMap>( 75 export function parseFragment<T extends TreeAdapterTypeMap = DefaultTreeAdapterMap>( 79 export function parseFragment<T extends TreeAdapterTypeMap = DefaultTreeAdapterMap>(
|
/third_party/parse5/packages/parse5-parser-stream/lib/ |
D | index.ts | 2 import { Parser, type ParserOptions, type TreeAdapterTypeMap, type DefaultTreeAdapterMap } from 'pa… alias 30 export class ParserStream<T extends TreeAdapterTypeMap = DefaultTreeAdapterMap> extends Writable { 31 static getFragmentStream<T extends TreeAdapterTypeMap>( 104 export interface ParserStream<T extends TreeAdapterTypeMap = DefaultTreeAdapterMap> {
|
/third_party/parse5/packages/parse5-parser-stream/test/utils/ |
D | parse-chunked.ts | 1 import type { ParserOptions, TreeAdapterTypeMap } from 'parse5'; 5 export function parseChunked<T extends TreeAdapterTypeMap>( 10 ): { node: TreeAdapterTypeMap['document']; chunks: string[] } {
|
/third_party/parse5/packages/parse5/lib/tree-adapters/ |
D | interface.ts | 4 export interface TreeAdapterTypeMap< interface 35 export interface TreeAdapter<T extends TreeAdapterTypeMap = TreeAdapterTypeMap> {
|
D | default.ts | 3 import type { TreeAdapter, TreeAdapterTypeMap } from './interface.js'; 100 export type DefaultTreeAdapterMap = TreeAdapterTypeMap<
|
/third_party/parse5/packages/parse5-plain-text-conversion-stream/lib/ |
D | index.ts | 1 import { type ParserOptions, type TreeAdapterTypeMap, html } from 'parse5'; alias 27 export class PlainTextConversionStream<T extends TreeAdapterTypeMap> extends ParserStream<T> {
|
/third_party/parse5/scripts/generate-parser-feedback-test/ |
D | index.ts | 3 import { Parser, type DefaultTreeAdapterMap, type TreeAdapterTypeMap, type Token, defaultTreeAdapte… alias 26 class ExtendedParser<T extends TreeAdapterTypeMap> extends Parser<T> {
|
/third_party/parse5/packages/parse5-htmlparser2-tree-adapter/lib/ |
D | index.ts | 1 import { type TreeAdapterTypeMap, type TreeAdapter, type Token, html } from 'parse5'; alias 17 export type Htmlparser2TreeAdapterMap = TreeAdapterTypeMap<
|