Skip to content

Commit

Permalink
docs: Fix small typo in code example (#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun committed Apr 21, 2022
1 parent e197cb2 commit 35ccb3f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/parse5/lib/index.ts
Expand Up @@ -57,7 +57,7 @@ export function parse<T extends TreeAdapterTypeMap = DefaultTreeAdapterMap>(
* console.log(documentFragment.childNodes[0].tagName); //> 'table'
*
* // Parses the html fragment in the context of the parsed <table> element.
* const trFragment = parser.parseFragment(documentFragment.childNodes[0], '<tr><td>Shake it, baby</td></tr>');
* const trFragment = parse5.parseFragment(documentFragment.childNodes[0], '<tr><td>Shake it, baby</td></tr>');
*
* console.log(trFragment.childNodes[0].childNodes[0].tagName); //> 'td'
* ```
Expand Down

0 comments on commit 35ccb3f

Please sign in to comment.