Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Document SAXParser changes from #247
- Loading branch information
Showing
7 changed files
with
214 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# Interface: SAXParserOptions | ||
|
||
### Properties | ||
|
||
* [sourceCodeLocationInfo](#locationinfo) | ||
|
||
--- | ||
|
||
## Properties | ||
|
||
<a id="locationinfo"></a> | ||
|
||
### `<Optional>` sourceCodeLocationInfo | ||
|
||
**● locationInfo**: *`boolean`* | ||
|
||
Enables source code location information for the tokens. When enabled, each token event handler will receive [Location](../../parse5/docs/source-code-location/location.md) (or [StartTagLocation](../../parse5/docs/source-code-location/start-tag-location.md)) object as its last argument. | ||
|
||
___ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Interface: CommentToken | ||
|
||
### Properties | ||
|
||
* [text](#text) | ||
* [sourceCodeLocation](#sourcecodelocation) | ||
|
||
--- | ||
|
||
## Properties | ||
|
||
<a id="text"></a> | ||
|
||
### text | ||
|
||
**● text**: *`string`* | ||
|
||
Comment text | ||
|
||
___ | ||
|
||
<a id="sourcecodelocation"></a> | ||
|
||
### `<Optional>` sourceCodeLocation | ||
|
||
**● sourceCodeLocation**: *[Location](../../../parse5/docs/source-code-location/location.md)* | ||
|
||
Comment source code location info. Available if location info is enabled via [SAXParserOptions](../sax-parser-options.md) | ||
|
||
___ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Interface: DoctypeToken | ||
|
||
### Properties | ||
|
||
* [name](#name) | ||
* [publicId](#publicid) | ||
* [systemId](#systemid) | ||
* [sourceCodeLocation](#sourcecodelocation) | ||
|
||
--- | ||
|
||
## Properties | ||
|
||
<a id="name"></a> | ||
|
||
### name | ||
|
||
**● name**: *`string`* | ||
|
||
Document type name. | ||
|
||
___ | ||
<a id="publicid"></a> | ||
|
||
### publicId | ||
|
||
**● publicId**: *`string`* | ||
|
||
Document type public identifier. | ||
|
||
___ | ||
<a id="systemid"></a> | ||
|
||
### systemId | ||
|
||
**● systemId**: *`string`* | ||
|
||
Document type system identifier. | ||
|
||
___ | ||
|
||
|
||
<a id="sourcecodelocation"></a> | ||
|
||
### `<Optional>` sourceCodeLocation | ||
|
||
**● sourceCodeLocation**: *[Location](../../../parse5/docs/source-code-location/location.md)* | ||
|
||
Text content source code location info. Available if location info is enabled via [SAXParserOptions](../sax-parser-options.md) | ||
|
||
___ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Interface: EndTagToken | ||
|
||
### Properties | ||
|
||
* [name](#name) | ||
* [sourceCodeLocation](#sourcecodelocation) | ||
|
||
--- | ||
|
||
## Properties | ||
|
||
<a id="name"></a> | ||
|
||
### name | ||
|
||
**● name**: *`string`* | ||
|
||
Tag name | ||
|
||
___ | ||
|
||
<a id="sourcecodelocation"></a> | ||
|
||
### `<Optional>` sourceCodeLocation | ||
|
||
**● sourceCodeLocation**: *[Location](../../../parse5/docs/source-code-location/location.md)* | ||
|
||
End tag source code location info. Available if location info is enabled via [SAXParserOptions](../sax-parser-options.md) | ||
|
||
___ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# Interface: StartTagToken | ||
|
||
### Properties | ||
|
||
* [attrs](#attrs) | ||
* [name](#name) | ||
* [selfClosing](#selfclosing) | ||
* [sourceCodeLocation](#sourcecodelocation) | ||
|
||
--- | ||
|
||
## Properties | ||
|
||
<a id="attrs"></a> | ||
|
||
### attrs | ||
|
||
**● attrs**: *Attribute*[] | ||
|
||
List of attributes | ||
|
||
___ | ||
<a id="name"></a> | ||
|
||
### name | ||
|
||
**● name**: *`string`* | ||
|
||
Tag name | ||
|
||
___ | ||
<a id="selfclosing"></a> | ||
|
||
### selfClosing | ||
|
||
**● selfClosing**: *`boolean`* | ||
|
||
Indicates if the tag is self-closing | ||
|
||
___ | ||
<a id="sourcecodelocation"></a> | ||
|
||
### `<Optional>` sourceCodeLocation | ||
|
||
**● sourceCodeLocation**: *[StartTagLocation](../../../parse5/docs/source-code-location/start-tag-location.md)* | ||
|
||
Start tag source code location info. Available if location info is enabled via [SAXParserOptions](../sax-parser-options.md) | ||
|
||
___ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
# Interface: TextToken | ||
|
||
### Properties | ||
|
||
* [text](#text) | ||
* [sourceCodeLocation](#sourcecodelocation) | ||
|
||
--- | ||
|
||
## Properties | ||
|
||
<a id="text"></a> | ||
|
||
### text | ||
|
||
**● text**: *`string`* | ||
|
||
Text content | ||
|
||
___ | ||
|
||
<a id="sourcecodelocation"></a> | ||
|
||
### `<Optional>` sourceCodeLocation | ||
|
||
**● sourceCodeLocation**: *[Location](../../../parse5/docs/source-code-location/location.md)* | ||
|
||
Text content source code location info. Available if location info is enabled via [SAXParserOptions](../sax-parser-options.md) | ||
|
||
___ |