source: trip-planner-front/node_modules/@angular/cdk/schematics/ng-update/html-parsing/elements.d.ts@ b738035

Last change on this file since b738035 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.2 KB
Line 
1/**
2 * @license
3 * Copyright Google LLC All Rights Reserved.
4 *
5 * Use of this source code is governed by an MIT-style license that can be
6 * found in the LICENSE file at https://angular.io/license
7 */
8import { Element } from 'parse5';
9/**
10 * Parses a HTML fragment and traverses all AST nodes in order find elements that
11 * include the specified attribute.
12 */
13export declare function findElementsWithAttribute(html: string, attributeName: string): Element[];
14/**
15 * Finds elements with explicit tag names that also contain the specified attribute. Returns the
16 * attribute start offset based on the specified HTML.
17 */
18export declare function findAttributeOnElementWithTag(html: string, name: string, tagNames: string[]): number[];
19/**
20 * Finds elements that contain the given attribute and contain at least one of the other
21 * specified attributes. Returns the primary attribute's start offset based on the specified HTML.
22 */
23export declare function findAttributeOnElementWithAttrs(html: string, name: string, attrs: string[]): number[];
24/** Gets the start offset of the given attribute from a Parse5 element. */
25export declare function getStartOffsetOfAttribute(element: any, attributeName: string): number;
Note: See TracBrowser for help on using the repository browser.