W3C home > Mailing lists > Public > www-html@w3.org > December 2002

Re: escaping escaping

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 03 Dec 2002 19:48:06 -0500
Message-Id: <200212040048.TAA24089@no-knife.mit.edu>
To: jdcard@inreach.com
cc: www-html@w3.org

> 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...

"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

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:06:01 UTC