In theory, yes. The "three nodes" is how IE represents supposedly invalid
DOM nodes. By utilizing document.createElement("fakeDomNodeName"), the IE
DOM starts to think that those invalid nodes are in fact actual elements.

Using this technique allows you to use CSS to target and style
HTML5-specific elements that previously found themselves in the "three
nodes" malformation. [1]

So maybe if you try the document.createElement() method, you can use
Prototype to remove the nodes, or at least use CSS to set their { display:
none; }

http://ejohn.org/blog/html5-shiv/

Cheers,
Alex

On Tue, Apr 20, 2010 at 11:44 AM, Jelks <[email protected]> wrote:

> On Apr 20, 10:41 am, Alex Wallace <[email protected]> wrote:
> > The non-HTML element can be tricked into appearing to be an actual HTML
> > element if you use:
> >
> > document.create("fakeElementTagName"); somewhere on the page. Once that's
> > done, IE will treat <fakeElementTagName>foo-bar</fakeElementTagName> as
> an
> > actual DOM element, and you should be able to remove it using regular DOM
> > helpers. (e.g. parentNode.removeChild, or Prototype's .remove();)
>
> Thanks Alex, so you're saying that with this toward the beginning of
> the <form ...>:
>
>    <AsyncException>Error occured during AsyncInvocation.</
> AsyncException>
>
> which appears in the IE DOM as
>
>    ASYNCEXCEPTION
>    #text  ("Error occured during AsyncInvocation.")
>    /ASYNCEXCEPTION
>
> (where those are *three nodes* (!) and not *one element*), and which
> shows this at the top of the page:
>
>    Error occured during AsyncInvocation.
>
> that if I do
>
>    document.createElement("ASYNCEXCEPTION");
>
> it will somehow overwrite those three nodes???
>
> 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]<prototype-scriptaculous%[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