Browse Source
document.documentElement.style is null in some XML documents. The previous snippet caused the following error: Uncaught TypeError: Cannot use 'in' operator to search for 'animation' in null To fix this bug, `'animation' in document.documentElement.style` has been replaced with `CSS.supports('animation', '9s')`. This method was introduced in Chromium 28, but it is not necessary to detect whether this method is supported because the required createShadowRoot method for embeds is not available in Chromium 32 and earlier.
1 changed files with 2 additions and 2 deletions
Loading…
Reference in new issue