I need a solution to loop through all tables in a given HTML document. The document is a report with potentially thousands of tables that I need to filter based on a keyword search. The conditions are a bit unique:
- This HTML document will be used offline in a browser or WebBrowser .NET control, so there is no external network connection.
- The script must be pure and concise JavaScript that will be embedded within the html document itself.
- I am open to solutions for both
<table>
anddisplay:table
CSS formatted tables. - Speed is not a top priority.
What are the best options for accomplishing this task?