simple-html-tokenizer
Advanced tools
Comparing version 0.5.10 to 0.5.11
@@ -0,1 +1,10 @@ | ||
## v0.5.11 (2021-02-03) | ||
#### :rocket: Enhancement | ||
* [#71](https://github.com/tildeio/simple-html-tokenizer/pull/71) Add support for parsing `<!DOCTYPE html>` ([@rwjblue](https://github.com/rwjblue)) | ||
#### Committers: 1 | ||
- Robert Jackson ([@rwjblue](https://github.com/rwjblue)) | ||
## v0.5.10 (2020-10-14) | ||
@@ -2,0 +11,0 @@ |
@@ -21,2 +21,7 @@ import { EntityParser, Token, TokenizerDelegate, TokenMap, TokenType, TokenizerOptions } from './types'; | ||
addLocInfo(): void; | ||
beginDoctype(): void; | ||
appendToDoctypeName(char: string): void; | ||
appendToDoctypePublicIdentifier(char: string): void; | ||
appendToDoctypeSystemIdentifier(char: string): void; | ||
endDoctype(): void; | ||
beginData(): void; | ||
@@ -23,0 +28,0 @@ appendToData(char: string): void; |
@@ -27,2 +27,7 @@ export interface NamedEntityMap { | ||
} | ||
export interface Doctype extends TokenBase<TokenType.Doctype> { | ||
name: string; | ||
publicIdentifier?: string; | ||
systemIdentifier?: string; | ||
} | ||
export interface StartTag extends TokenBase<TokenType.StartTag> { | ||
@@ -42,4 +47,5 @@ tagName: string; | ||
} | ||
export declare type Token = StartTag | EndTag | Chars | Comment; | ||
export declare type Token = StartTag | EndTag | Chars | Comment | Doctype; | ||
export declare const enum TokenType { | ||
Doctype = "Doctype", | ||
StartTag = "StartTag", | ||
@@ -55,2 +61,3 @@ EndTag = "EndTag", | ||
Comment: Comment; | ||
Doctype: Doctype; | ||
} | ||
@@ -61,2 +68,7 @@ export interface TokenizerDelegate { | ||
tagOpen(): void; | ||
beginDoctype?(): void; | ||
appendToDoctypeName?(char: string): void; | ||
appendToDoctypePublicIdentifier?(char: string): void; | ||
appendToDoctypeSystemIdentifier?(char: string): void; | ||
endDoctype?(): void; | ||
beginData(): void; | ||
@@ -63,0 +75,0 @@ appendToData(char: string): void; |
{ | ||
"name": "simple-html-tokenizer", | ||
"version": "0.5.10", | ||
"version": "0.5.11", | ||
"description": "Simple HTML Tokenizer is a lightweight JavaScript library that can be used to tokenize the kind of HTML normally found in templates.", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
455346
4412