Skip to content

tim-hr/domthingy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

This is a super-simple DOM API for learning purposes.

There is just one function: getDOMTreeFromHTML().

Pass in your HTML to parse, and a callback to handle the results, as so:

const html = '<p><a class="the-link" href="https://google.com">goog</a></p>';
domthingy.getDOMTreeFromHTML(html, (err, root) => {
    // "root" will now be an HTMLHTMLElement, 
    // which you can use to traverse the rest of the tree.
});

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •