Skip to content

Commit fc0506c

Browse files
committed
FF 144
1 parent d79c8c6 commit fc0506c

File tree

2 files changed

+19
-21
lines changed

2 files changed

+19
-21
lines changed

src/main/java/org/htmlunit/BrowserVersionFeatures.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ public enum BrowserVersionFeatures {
353353
JS_NAVIGATOR_DO_NOT_TRACK_UNSPECIFIED,
354354

355355
/** Indicates that someObj.offsetParent returns null, it someObj has fixed style. */
356-
@BrowserFeature({CHROME, EDGE})
356+
@BrowserFeature({CHROME, EDGE, FF})
357357
JS_OFFSET_PARENT_NULL_IF_FIXED,
358358

359359
/** element.outerHTML removes all children from detached node. */

src/test/java/org/htmlunit/javascript/host/html/HTMLElementTest.java

Lines changed: 18 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -221,9 +221,9 @@ public void getSetAttributeNS() throws Exception {
221221
* @throws Exception if the test fails
222222
*/
223223
@Test
224-
@Alerts(DEFAULT = {"text", "i", "i", "[object CSS2Properties]", "function", "undefined", "undefined"},
225-
CHROME = {"text", "i", "i", "[object CSSStyleDeclaration]", "function", "undefined", "undefined"},
226-
EDGE = {"text", "i", "i", "[object CSSStyleDeclaration]", "function", "undefined", "undefined"})
224+
@Alerts(DEFAULT = {"text", "i", "i", "[object CSSStyleDeclaration]", "function", "undefined", "undefined"},
225+
FF = {"text", "i", "i", "[object CSSStyleProperties]", "function", "undefined", "undefined"},
226+
FF_ESR = {"text", "i", "i", "[object CSS2Properties]", "function", "undefined", "undefined"})
227227
@HtmlUnitNYI(FF = {"text", "i", "i", "[object CSSStyleDeclaration]", "function", "undefined", "undefined"},
228228
FF_ESR = {"text", "i", "i", "[object CSSStyleDeclaration]", "function", "undefined", "undefined"})
229229
public void attributesAccess() throws Exception {
@@ -2452,8 +2452,6 @@ public void offsetParent_newElement() throws Exception {
24522452
@Test
24532453
@Alerts(DEFAULT = {"null", "body", "TypeError", "body", "body", "body",
24542454
"f1", "body", "h1", "i1", "td", "TypeError", "td", "body", "body"},
2455-
FF = {"null", "body", "body", "body", "body", "body",
2456-
"f1", "body", "h1", "i1", "td", "body", "td", "body", "body"},
24572455
FF_ESR = {"null", "body", "body", "body", "body", "body",
24582456
"f1", "body", "h1", "i1", "td", "body", "td", "body", "body"})
24592457
public void offsetParent_WithCSS() throws Exception {
@@ -2488,21 +2486,21 @@ public void offsetParent_WithCSS() throws Exception {
24882486
+ " } catch(e) { logEx(e); }\n"
24892487
+ " }\n"
24902488
+ " function test() {\n"
2491-
+ " log(document.getElementById('body').offsetParent); // null (FF) null (IE)\n"
2492-
+ " alertOffsetParentId('a2'); // body body \n"
2493-
+ " alertOffsetParentId('b2'); // body exception \n"
2494-
+ " alertOffsetParentId('c2'); // body body \n"
2495-
+ " alertOffsetParentId('d2'); // body body \n"
2496-
+ " alertOffsetParentId('e2'); // body body \n"
2497-
+ " alertOffsetParentId('f2'); // f1 f1 \n"
2498-
+ " alertOffsetParentId('g2'); // body body \n"
2499-
+ " alertOffsetParentId('h2'); // h1 h1 \n"
2500-
+ " alertOffsetParentId('i2'); // i1 i1 \n"
2501-
+ " alertOffsetParentId('j2'); // td td \n"
2502-
+ " alertOffsetParentId('k2'); // body exception \n"
2503-
+ " alertOffsetParentId('l2'); // td td \n"
2504-
+ " alertOffsetParentId('m2'); // body body \n"
2505-
+ " alertOffsetParentId('n2'); // body body \n"
2489+
+ " log(document.getElementById('body').offsetParent);\n"
2490+
+ " alertOffsetParentId('a2');\n"
2491+
+ " alertOffsetParentId('b2');\n"
2492+
+ " alertOffsetParentId('c2');\n"
2493+
+ " alertOffsetParentId('d2');\n"
2494+
+ " alertOffsetParentId('e2');\n"
2495+
+ " alertOffsetParentId('f2');\n"
2496+
+ " alertOffsetParentId('g2');\n"
2497+
+ " alertOffsetParentId('h2');\n"
2498+
+ " alertOffsetParentId('i2');\n"
2499+
+ " alertOffsetParentId('j2');\n"
2500+
+ " alertOffsetParentId('k2');\n"
2501+
+ " alertOffsetParentId('l2');\n"
2502+
+ " alertOffsetParentId('m2');\n"
2503+
+ " alertOffsetParentId('n2');\n"
25062504
+ " }\n"
25072505
+ " </script>\n"
25082506
+ " </body>\n"

0 commit comments

Comments
 (0)