On Apr 26, 6:00 am, Domizio Demichelis <[email protected]> wrote:
> > Since a text node is not an element it does not seem to have a height
> > width or position.  I suppose that is why the Firebug code has
> >                        if(elt.nodeType === 3)
> >                            elt = elt.parentNode;
>
> so the only(?) way to highlight the text (and only the text) would be
> wrapping it with an element like <span>, and then highlight the new created
> span element instead? Any other alternative?

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.

jjb


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

Reply via email to