mirror of
https://github.com/danbulant/node-html-parser
synced 2026-05-19 04:18:52 +00:00
Fix imports for deno
This commit is contained in:
parent
0d81bd6f1b
commit
170ef84b18
5 changed files with 13 additions and 13 deletions
|
|
@ -1,4 +1,4 @@
|
|||
import HTMLElement from './nodes/html';
|
||||
import HTMLElement from './nodes/html.ts';
|
||||
|
||||
interface MatherFunction {
|
||||
func(el: HTMLElement, tagName: string, classes: string[] | string, attr_key: string, value: string): boolean;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import Node from './node';
|
||||
import NodeType from './type';
|
||||
import Node from './node.ts';
|
||||
import NodeType from './type.ts';
|
||||
|
||||
export default class CommentNode extends Node {
|
||||
constructor(value: string) {
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
import { decode } from 'he';
|
||||
import Node from './node';
|
||||
import NodeType from './type';
|
||||
import TextNode from './text';
|
||||
import Matcher from '../matcher';
|
||||
import arr_back from '../back';
|
||||
import CommentNode from './comment';
|
||||
import { decode } from 'https://raw.githubusercontent.com/mathiasbynens/he/master/src/he.js';
|
||||
import Node from './node.ts';
|
||||
import NodeType from './type.ts';
|
||||
import TextNode from './text.ts';
|
||||
import Matcher from '../matcher.ts';
|
||||
import arr_back from '../back.ts';
|
||||
import CommentNode from './comment.ts';
|
||||
|
||||
export interface KeyAttributes {
|
||||
id?: string;
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import NodeType from './type';
|
||||
import NodeType from './type.ts';
|
||||
|
||||
/**
|
||||
* Node Class as base class for TextNode and HTMLElement.
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
import NodeType from './type';
|
||||
import Node from './node';
|
||||
import NodeType from './type.ts';
|
||||
import Node from './node.ts';
|
||||
|
||||
/**
|
||||
* TextNode to contain a text element in DOM tree.
|
||||
|
|
|
|||
Loading…
Reference in a new issue