Re: escaping escaping

> It seems that a collection of CSS similar to the following would come very 
> close to that objective (display the HTML source).
> 
>   h1:before {content: '<h1>' !important;}
>   h1[class]:before {content: '<h1 class="' attr(class)'">' !important;}
>   h1:after {content: '</h1>' !important;}

What about other attributes?  The collection of rules required quickly becomes
unwieldy... (if you want to support N attributes on a node, you need 2^N - 1
rules.  For nodes with 6-7 attributes (eg <table>) this is pretty painful.  And
this assumes that you know the attribute set, of course, which you do not for
generic XML, really).

In addition, this approach does not help any with showing <param> tags inside
an <object>, eg, because those are not displayed anyway...

Boris
-- 
"This isn't right.  This isn't even wrong."

                -- Wolfgang Pauli on a paper submitted 
                   by a physicist colleague

Received on Tuesday, 3 December 2002 19:51:23 UTC