loge.hixie.ch

Hixie's Natural Log

2002-10-10 23:49 UTC #include web-log-entry.txt.2

The phoenix guys are now using my preprocessor, yay.

I've added a Special Feature exclusively for the DVD version: filters. So the XUL files can now say things like:

#filter spaces slashslash
   <heavily>
       <indented>     // This is just an example
           <markup    with="attributes, and   stuff."/>
       </indented>
   </heavily>

This will be collapsed to:

<heavily>
<indented>
<markup with="attributes, and stuff."/>
</indented>
</heavily>

Hopefully that will be an interesting space saving. It has some problems, as shown above, like it will collapse significant whitespace (the bit in the attributes) but not insignificant whitespace (the newlines). Just imagine what would happen if you had two slashes in an attribute value... Not much that can be done about that without adding comprehensive parsing for each type of language (JS, XML, CSS, etc) supported, so authors will just have to #unfilter the relevant parts.