LVel / ie7-js

Automatically exported from code.google.com/p/ie7-js
0 stars 0 forks source link

Invalid argument in IE8.js and IE9.js; misplacement of element contents for all versions #300

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
Include either IE8.js or IE9.js per the instructions, with or without setting 
the IE7_PNG_SUFFIX variable.

What is the expected output? What do you see instead?
I expect to see box-sizing working for IE6 and IE7 and transparent PNGs working 
in IE6. For IE6 transparent PNGs work for the most part: The work as expected 
for some divs. The transparent PNG set as the background for the body element 
is only shown within the container element, which is the only direct child of 
the body element. It is also stretched in the vertical direction to fill the 
container element even though I have set x-repeat as follows:
background: url("../img/bg.png") 0 0 repeat-x;
(IE6 only).

Contents of some floated divs appear misplaced, some as if margin-left was set 
to some 100px, some positioned at the top of the page while the divs themselves 
are positioned "correctly" (given that the box-sizing has no effect).

What version of the product are you using? On what operating system?
I am using 2.1 beta 4. The operating systems are Win XP SP3 (IE8 with Debugbar 
IEtester) and Windows XP with IE6 from the newest VHD from Microsoft.

Please provide any additional information below.
According to the popups the invalid argument error originates from line 7, 
column 28206 (IE8.js) and line 7, column 28214 (IE9.js). For both versions this 
corresponds to line 2080, column 11 in the non-compressed versions.

No error messages occur when using IE7.js. Otherwise the results are the same.

Thanks for any help! I hope it's a small fix. This script would really make my 
work easier.

Original issue reported on code.google.com by oys...@gmail.com on 8 Feb 2011 at 12:24

GoogleCodeExporter commented 8 years ago
I've got the same problemand i didn't find the answer.

Original comment by theod...@gmail.com on 9 Feb 2011 at 10:07

GoogleCodeExporter commented 8 years ago
I am also seeing this problem.  Specifically, IE8 8.0.6001.18702 and ONLY when 
in "Compatibility View" mode.

Original comment by Doss...@gmail.com on 1 Mar 2011 at 9:38

GoogleCodeExporter commented 8 years ago
> ONLY when in "Compatibility View" mode.
Hmm.

OP: would you mind throwing a test page somewhere?

Original comment by kit.cof...@gmail.com on 4 Mar 2011 at 6:07

GoogleCodeExporter commented 8 years ago
I'm going to try and create a minimal reproduction of this bug.  Thanks for 
asking.

Original comment by Doss...@gmail.com on 4 Mar 2011 at 7:59

GoogleCodeExporter commented 8 years ago
Woo!  Great success, very nice ... I have the *minimal* reproducible test case 
that demonstrates this bug.

http://panoptic.com/ie7-js-300/

Hit that URL with IE8 with "Compatibility View" turned on, and you'll see the 
JS error.

Original comment by Doss...@gmail.com on 4 Mar 2011 at 8:13

GoogleCodeExporter commented 8 years ago
I'm also having the same issue, linking directly to the hosted JS IE8/IE9:

<!--[if lt IE 9]>
<script 
src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE9.js"></script>
<![endif]-->
<!--[if lt IE 8]>
<script 
src="http://ie7-js.googlecode.com/svn/version/2.1(beta4)/IE8.js"></script>
<![endif]-->

The JS error is: Line 7, Char 28214, Invalid argument

This occurs in IETester "New IE6" and "New IE7". A fix or solution would be 
greatly appreciated.

Original comment by michael....@gmail.com on 21 Mar 2011 at 8:31

GoogleCodeExporter commented 8 years ago
I am getting the same issue. Any thoughts on how to fix it?

Original comment by twofivet...@gmail.com on 13 Apr 2011 at 9:17

GoogleCodeExporter commented 8 years ago
I was getting the same JS error in IE7 and found the cause to be font: inherit; 
in my reset css. This is the same as Issue #307 
(http://code.google.com/p/ie7-js/issues/detail?id=307). They provided a temp 
solution that worked in my case so might work for others.

Original comment by twofivet...@gmail.com on 14 Apr 2011 at 2:38

GoogleCodeExporter commented 8 years ago
Nice, yeah, looks like #307 is a dupe of or at least closely related to this 
issue.

Original comment by Doss...@gmail.com on 14 Apr 2011 at 3:12

GoogleCodeExporter commented 8 years ago
Thanks for posting that.

Original comment by michael....@gmail.com on 14 Apr 2011 at 5:34

GoogleCodeExporter commented 8 years ago
I am having a similar problem, but can't seem to apply any of the fixes above. 
I am a novice HTML coder. The applicable code is as follows:

<HTML>
<HEAD>
<TITLE>Fred Ray Nabors- Personal Home Page</TITLE>
<script language="javascript1.2" type="text/javascript">
function openjukebox (URL, WindowName, Features) 
{ 
window.open(URL, WindowName, Features);
}
</script>
</HEAD>
<BODY BACKGROUND="buffwall.gif" body text="#000000" LINK="ff7100" 
vlink="ff7100" alink="ff7100">
<a href="javascript:openjukebox('song1danceswithwolves.htm', 'Downhill Run 
Acres Jukebox', 'toolbar=0, location=0, directories=0, status=0, menubar=0, 
scrollbars=1, resizable=0, copyhistory=0, left=0, top=0, screenX=0, screenY=0, 
width=410, height=300')">Start the Automated Jukebox</a>
<CENTER>

I am getting the "Invalid Argument" error at Line 7, Char 1. Code 0

I have tried this in both IE7 and IE8, although it seems to work in Google 
Chrome.

Any help would be appreciated!!!

Ron

Original comment by abusines...@rondougherty.com on 1 May 2011 at 3:20

GoogleCodeExporter commented 8 years ago
I'm also getting the invalid argument error in IE7 when using IE9.js. After 
tracing the problem, I found out that IE7 doesn't like g.runtimeStyle['font']. 
Below is the snippet of code I extracted from IE9.js where the error is 
occurring.

function (g, f) {
    if (g.parentElement) {
        var d = f.match(dd);
        for (var c = 0; c < d.length; c++) {
            var a = d[c].replace(de, "");
            if (g.currentStyle["ie7-" + a] === "inherit") {
                a = a.replace(df, dg);

                alert(a); //alerts 'font'

                g.runtimeStyle[a] = g.parentElement.currentStyle[a]
            }
        }
    }
}

Original comment by glen...@gmail.com on 24 Aug 2011 at 5:56

GoogleCodeExporter commented 8 years ago
I have the same issue, and noticed the same thing, any update on this?

Original comment by wade.cor...@gmail.com on 8 Feb 2012 at 6:35

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
change --> font: inherit;
to -->
font-weight: inherit;
font-style: inherit;
font-family: inherit;

It has been fixed in Issue #307 .

Original comment by thanhthi...@gmail.com on 7 Jul 2012 at 7:02