Skip to content

In Edge 14 Preview setting a style property to a whitespace-only value resets it to the default #3204

@mgol

Description

@mgol

Description

Edge 14 is breaking the jQuery 3.0.0 test suite in the Edge preview 14.14342.

var style = document.createElement('div').style;
style.position = 'absolute';
style.position = ' ';
console.log(style.position); // logs '', should log 'absolute'

This works correctly if you set the property to a non-whitespaced invalid value like:

style.position = 'fake property';

It also works fine in Edge 12 & 13 as well as any other popular web browser.

Link to test case

https://jsfiddle.net/o9yee8yd/3/

I originally reported it at https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/7961792/ but it was closed as "External" without any real further explanation. @jacobrossi @jdalton could you elaborate?

cc @dmethvin

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions