Setting a style property to a whitespace-only value resets it to the default

Confirmed Issue #7961792

Details

Created
Jun 22, 2016
Privacy
This issue is public.
Found in
  • Microsoft Edge
Found in build #
14.14342
Reports
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

This regression issue 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 se tthe property to a non-whitespaced invalud value like:
style.position = 'fake property’;

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

Attachments

0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Travis L.”

      Changed Assigned To from “Travis L.” to “Francois R.”

      Changed Status to “Confirmed”

    • This issue has been resolved External. This means this issue may require a new feature to be implemented or other work that is more significant than a typical bug. You may be able to find more information on this issue by searching for related features on status.microsoftedge.com and uservoice.microsoftedge.com.

    • Could you provide more details about it being planned or not and what’s the reason for the change? It works correctly in every current browser including Edge and it changed only now in Edge 14.

      As I said, it also breaks the jQuery test suite and we (the jQuery team) need to know how to react to that.

    You need to sign in to your Microsoft account to add a comment.

    Sign in