You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In my mocha test case, if I have the following code:
document.body.innerHTML = "<div id=\"ctrl\" style=\"background:#111;border:1px\"></div>";
var a = document.body.firstChild;
a.style['background'] = null;
Then I will get:
TypeError: Cannot read property 'split' of null
In our code, the last statement is used to invalid and thus clean the value of the specific style. It can be achieved by other ways, but the problem is that it works in previous build (8.0.2 and before) and in Chrome. It seems in latest implementation String.split() is used when assigning values to style without null check.
The text was updated successfully, but these errors were encountered:
In my mocha test case, if I have the following code:
Then I will get:
In our code, the last statement is used to invalid and thus clean the value of the specific style. It can be achieved by other ways, but the problem is that it works in previous build (8.0.2 and before) and in Chrome. It seems in latest implementation String.split() is used when assigning values to style without null check.
The text was updated successfully, but these errors were encountered: