I appreciate your effort to slim down my code, but it is necessary that double quotes be avoided. That allows it to be included into a cross-browser javascript
: link. Newer browsers would allow you to escape the double quotes, but older ones will just boff the HTML parsing.
Quote:
Originally posted by Algorithm
After looking over your code, I found a number of things that could be improved upon, so I tinkered with it. Hope you don't mind!
I removed the global templates (improving interoperability), updated the syntax to meet XHTML standards, removed that annoying 'empty string' bug, and squeezed the filesize down to 1.4KB.
This is a great concept, and I can definitely see myself using this in the future. Thanks!
|
Thanks! And let me know if you can successfully get this slimmed down into a highly cross-browser (IE/NS/MZ) javascript
: link.