CSSStyleDeclaration.removeProperty returns undefined when property is missing

Issue #13151943 • Assigned to Kris K.


Otto C.
Aug 8, 2017
This issue is public.
Found in
  • Microsoft Edge
Standard affected
Document Object Model CSS

Found in build #
Reported by 1 person

Sign in to watch or report this issue.

Steps to reproduce

When calling removeProperty on a property that is missing, Edge returns undefined instead of an empty DOMString as the specification dictates.

“Returns the value of the property if it has been explicitly set for this declaration block. Returns the empty string if the property has not been set or the property name does not correspond to a known CSS property.”

Simple to reproduce in Dev Console:

document.body.style.removeProperty(“nothing”) == undefined

Works correctly in Chrome, Firefox and IE 11.

This is a problem in Scala.js which checks the type of returned values from JS functions when building a debug version of code.


0 attachments

    Comments and activity

    • Microsoft Edge Team

      Changed Assigned To to “Steven K.”

      Changed Assigned To to “Travis L.”

      Changed Assigned To to “Bogdan B.”

      Changed Assigned To from “Bogdan B.” to “Rossen A.”

      Changed Assigned To from “Rossen A.” to “Kris K.”

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

    Sign in