Re: display="none", but is copied

Tantek Celik wrote:

>CSS (1&2) does not discuss user agent usage (or not) of the clipboard.  UA
>dependent.
>
>Having said that, one might say that the "right" thing to do is probably to
>not copy text from "display:none" or "visibility:hidden" elements within the
>selection.  I don't know if any UA supports this however.
>
a) I am not an expert of DOM Ranges it seems to me cost-uneffective to 
check both the computed
values of 'display' and 'visibility' for all selected elements before 
turning a selection into a range.

b) let's suppose you are viewing an XML document containing :

  <foo><bar>bla</bla><tata>bla again</tata></foo>

and let's suppose the following CSS rule applies :  bar { display : none }

Here is the DTD fragment for foo : <!ELEMENT foo - - (bar+, tata) >

The element bar is not displayed but you can't omit it if you copy the 
fragment if you don't
want to end up with an invalid fragment...

</Daniel>

Received on Monday, 12 November 2001 11:03:09 UTC