See Also: Home Links Personal Site Blogroll  FriendFeed CV

Tags:

Topic Image

De Tabliser

In the dark-ages of webpage design <tables> were used as the only reliable cross-browser means of laying out a web page in columns and rows. This Script decomposes a fetched page in a graphical way so you can get a quick handle on the tables horrors within.

You can use a live copy of this script at the following URL
http://webteam.waikato.ac.nz/cgi-bin/deTabliser.cgi

Takes a URL specified in an FORM INPUT field, requests the page using LWP and parses it using HTML::Parser to extract the TABLE layout used in the page for debugging purposes.

HTML::Parser does a good job of emaulating browser activity when reading and parsing fetched HTML, all we do in this script really is keep a track of table nesting and open/close tag pairs as the parser triggers the event handlers.

Sample Output

http://webdev.co.nz/Perl/deTabliser.jpg


See Also: Web Projects | Web Development | Notes Index