On 21/08/06, Matt Stith <[EMAIL PROTECTED]> wrote:
> Yeah i noticed that too, its really akward having forms in the middle of
> firebug when im trying to do something..
>
>
> On 8/20/06, Francisco Brito < [EMAIL PROTECTED]> wrote:
> >
>
> the html() function calls:
>
> this.set ( "innerHTML", h );
>
> which makes it set the innerHTML attribute, not property. If you inspect the
> markup with firebug, you'll see that firebug will actually render html in
> its pane. Very funky.
>
> May I suggest that it's done via:
>
> this.each(function(){this.innerHTML = h;});
>
> Thoughts?
>
>
> happy coding.
> -Brito
>

There are two bug filed for this:
http://proj.jquery.com/dev/bugs/bug/22/
http://proj.jquery.com/dev/bugs/bug/60/

But for some reason they have been closed (even though it still occurs
in the latest SVN).

Simple test:

<script type="text/javascript"
src="http://jquery.com/src/jquery-svn.js";></script>
<div id="foo">Hello</div>
<script type="text/javascript">
<!--
        $("#foo").html("<strong>html</strong>");
//-->
</script>

The DIV 'foo' ends up as
<div id="foo" innerhtml="<strong>html</strong>">
<strong>html</strong>
</div>

You don't notice any difference in how it looks but you never know if
it may cause issues in the future - plus it makes debugging with
Firebug a bit harder (using the inspector).

_______________________________________________
jQuery mailing list
[email protected]
http://jquery.com/discuss/

Reply via email to