On Mar 10, 7:30 am, BUILH <[email protected]> wrote:
> I am using Firebug 1.5.2 / Firefox 3.5.8 / WondiwsXP SP2
>
> I write javascript source because I have poor english.
> This error is occurring in specific folder name and file name.
> I can't write folder name because contain text of business content.
> Were you understand my english...?
I did without any problems :-)


> source1
>
> <html>
> <head>
> <script></script>   <!--no line feed-->
> </head>
> <body>
>   <div id="testDiv">text</div>
>   <script type="text/javascript">
>     (function() {
>       var divObj = document.getElementsByTagName('div');
>       alert(divObj[0].id);   //testDiv
>       alert(divObj[1].id);   //_firebugConsole
>     })();
>   </script>
> </body>
> </html>
>
> source2
>
> <html>
> <head>
> <script>   //line feed
> </script>
> </head>
> <body>
>   <div id="testDiv">text</div>
>   <script type="text/javascript">
>     (function() {
>       var divObj = document.getElementsByTagName('div');
>       alert(divObj[0].id);   //_firebugConsole
>       alert(divObj[1].id);   //testDiv
>     })();
>   </script>
> </body>
> </html>
Firebug is injecting some JS code and also creating a <div> element -
_firebugConsole - in the page (so the Console panel and its command
line work). The way the examples are provided indicates that the
insertion is made at different moments and so, sometimes it's not the
first child of the <body> element but the second.

Since the injection rises problems, we are just in the middle of a
discussion how to replace it by a better approach.

Honza

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