Ok, so I was too glib.  Maybe it's not "very simple."

1) Do you have control of the delivery of this document at the server side?
2) Is it well-formed XHTML?
3) I'm not sure I understand what you're trying to do with this page while
it's in a browser.  JIs it just to remove the text node

--
Jonathan Rosenberg
Founder & Executive Director, Tabby's Place
http://www.tabbysplace.org/



-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Jelks
Sent: Tuesday, April 20, 2010 10:34 AM
To: Prototype & script.aculo.us
Subject: [Proto-Scripty] Re: Hide or Remove non-HTML element from HTML

On Apr 20, 10:08 am, "Jonathan Rosenberg" <[email protected]>
wrote:

> How about using Xpath from Javascript to find the nodes?  Very simple.

Simple?  How so?  This is not an XML document, this is an HTML page
that happens to have one non-HTML element in it.  All the other
browsers add it to the HTML DOM, no problem -- and in those, I can
easily hide or remove it.  But IE turns that non-HTML element into
three nodes, the start tag being the first, the text node being the
second, and end tag the third.  Presumably the three are siblings, but
I'm guessing there.

So how might I go about removing that text node in an HTML document
using Xpath from Javascript?

Thanks,

Jelks

-- 
You received this message because you are subscribed to the Google Groups
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en.


-- 
You received this message because you are subscribed to the Google Groups 
"Prototype & script.aculo.us" 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/prototype-scriptaculous?hl=en.

Reply via email to