I did, and didn't see the extra </div>, but i wasn't sure if Firebug
would show that behavior anyway.  I can check again.

On Jan 21, 6:25 pm, Barry van Oudtshoorn <[email protected]>
wrote:
> Try inspecting the DOM with Firebug. Do you see the same behaviour
> exhibited then?
>
> On 22/01/10 05:06, hairbo wrote:
>
>
>
>
>
> > It's possible it's a bug with Firefox's HTML source rendering.
> > According to the web developer guy, his code just wraps around
> > existing FF code:
>
> >http://chrispederick.com/forums/viewtopic.php?id=2518
>
> > On Jan 21, 3:01 pm, Roman Land<[email protected]>  wrote:
>
> >> I am positive the issue is not with Mootools, this is a very basic use and 
> >> I
> >> am positive any bugs would be already fixed..
>
> >> On Thu, Jan 21, 2010 at 10:17 PM, hairbo<[email protected]>  wrote:
>
> >>> Hi all,
>
> >>> This appears to be either a problem with Mootools or with the "View
> >>> Generated Source" feature of Web Developer 1.1.8, (running on Firefox
> >>> 3.5.7 on Snow Leopard).
>
> >>> If I run the code contained in the shell:
>
> >>>         var d = new Element('div', {id: 'el1'});
> >>>         d.set('html','<p>injected stuff</p>');
>
> >>>         d.inject($('container'));
>
> >>> <div id="container">
> >>> hi there
> >>> </div>
>
> >>> ...and then view the generated source, I see this:
>
> >>> <div id="container">
> >>> hi there
> >>> <div id="el1"><p>new stuff</p></div></div>
>
> >>> </div>
>
> >>> There's an extra</div>  on the newly-injected element.  Is this a bug
> >>> in Mootools, or is this an artifact of Web Developer?
>
> >>> Here's the shell of the code, though you won't see the problem in the
> >>> shell:
>
> >>>http://mootools.net/shell/m2tWz/
>
> >> --
> >> ---
> >> "Make everything as simple as possible, but not simpler."
>
> >> - Albert Einstein
>
> --
> Not sent from my iPhone.

Reply via email to