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