html - Select text node with CSS -


i have following html markup:

<h1>       <div class="sponsor">            <span>hello</span>        </div>       world  </h1> 

when use css selector h1 hello world.

is there css selector can take text node? world in example?

edited:

i can't unfortunately change markup , have use css selectors because work system aggregates rss feeds.

the current state of css can't this, check link: w3c

the problem here content write screen doesn't show in dom :p.

also ::outside doesn't seem work yet (at least me in safari 6.0.3) or doesn't generate desired result yet.

check fiddle , check dom source: jsfiddle

finally there attribute selectors a { content: attr(href);}, making css able read dom-node attributes. there doesn't seem innerhtml equivalent of yet. great tho if possible, whereas might able manipulate inner markup of tag.


Comments

Popular posts from this blog

jOOQ update returning clause with Oracle -

java - Warning equals/hashCode on @Data annotation lombok with inheritance -

java - BasicPathUsageException: Cannot join to attribute of basic type -