I've finished a first cut at a subclass of
PPI::HTML that applies some tag compression, and adds support for code folding. For the curious, check
the homepage that has a link to example output.
I'd appreciate
- any feedback on the layout and/or folding interface, as I'm planning on using this in a browser based debugger
- (OTish) some insight into an issue
with Firefox (both 1.5 and 2.0).
I use perl5db.pl as a stress test; while the compression works fairly well (relative to PPI::HTML), the output generates a very large number of spans (8500+), and the resulting behavior in Firefox is terrible. IE6 and Safari 2.0.4 handle it fairly well. I know FF has some performance problems, but couldn't google up a specific reference to large numbers of spans being an issue. If any monk can shed some light on the issue (or knows a URL where I might find the answer), I'd be much obliged.
Update:
After some further diagnosis, I seem to have solved
(at least partially) the FF issue. Either FF hates tabs, or has issues parsing CSS. After updating CodeFolder to expand
tabs in the HTML, and injecting a dummy CSS class at the beginning of the CSS, FF now behaves much better on perl5db's folded output.
As a regular FF user, I must say
I'm getting a bit nervous about some of the flaky bugs I'm finding in it...e.g, in a <pre> section, a single quote
at the end of a line causes FF to alter the output line-height of the next line. (Fortunately, I was able to <span> the problem away, but its still a bit odd)
Perl Contrarian & SQL fanboy
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.