- From: Ian Hickson <py8ieh@bath.ac.uk>
- Date: Fri, 15 Oct 1999 20:26:17 +0100 (BST)
- To: Robert Stevahn <rstevahn@boi.hp.com>
- cc: www-style <www-style@w3.org>
On Fri, 15 Oct 1999, Robert Stevahn wrote: > Ian Hickson wrote: > > > How would this work, then? > > > > <p id="a"><a href="#b">foo</a></p> > > <p id="b"><a href="#a">bar</a></p> > > > > a { content: target-content(href); } > > My interpretation is that you would effectively see: > > <p>bar</p> > <p>foo</p> > > I base this on the assumption that target-content() works the same as > content() in that it only looks at the textual content of the target. Using the current spec, yes. And that is the behaviour I like. The question was in the context of someone suggesting that content() should not flatten the tree. As I was trying to point out, that would bring in many, many problems, mainly because you would have to style the bit of the tree you bring in as well, and that opens a can of worms the like of which noone has seen before... ;-) -- Ian Hickson "I take a Professor Bullett approach to my answers. There's a high probability that they may be right." -- Dr Snow; Mechanics Lecturer at Bath University; 1999-03-04
Received on Friday, 15 October 1999 15:26:21 UTC