CSSStyleDeclaration.removeProperty returns undefined when property is missing

Issue #13151943 • Assigned to Rossen A.

Details

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

Found in build #
40.15063
Reports
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.

Attachments

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.”

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

    Sign in