> > I would say it differently: There is not way to highlight a text node > because it consumes no visual space. It's more like an attribute of > the parentNode, tells us what characters to place in that element. > But I'm not an expert on this subject, so you should ask around. >
Interesting point of view :-). Anyway, I find the way by creating a span elemen with the textContent of the text node, switching it with the plain text node and caching both nodes. With the span in place, the highlightObject() creates the highlight box also for the span, then I switch back the original text in place of the span so the code get restored (you didn't even notice the double-switch), but now the additional highlight boxes are in place. ;-). ciao dd -- You received this message because you are subscribed to the Google Groups "Firebug" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/firebug?hl=en.
