Skip to content

Commit

Permalink
docs: Fix small typo in code example (inikulin#518)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheeaun authored and jmbpwtw committed Feb 16, 2023
1 parent 6598405 commit 451865e
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 451865e

Please sign in to comment.