import Parse5EventAdaptor from 'sax-token-stream/src/adaptors/parse5-event-adaptor.js'Parse5EventAdaptor
Extends:
node:events~EventEmitter → Parse5EventAdaptor
Implements:
- EventAdaptor
EventAdaptor for Parse5 SAX parser.
The following events are piped through the stream as tokens
- <b>comment</b> - Parse5EventAdaptor~CommentToken
- <b>doctype</b> - Parse5EventAdaptor~DoctypeToken
- <b>endTag</b> - Parse5EventAdaptor~EndTagToken
- <b>startTag</b> - Parse5EventAdaptor~StartTagToken
- <b>text</b> - Parse5EventAdaptor~TextToken
Tokens extend the base types as defined in the parse5-sax-parser module. For example,
a StartTagToken will extend the StartTag type.
See the Parse5 documentation for more details.
Constructor Summary
| Public Constructor | ||
| public |
constructor(delegate: EventEmitter) |
|
Public Constructors
public constructor(delegate: EventEmitter) source
Params:
| Name | Type | Attribute | Description |
| delegate | EventEmitter |
