diff --git a/snippets/addStyles.md b/snippets/addStyles.md index 0d50c768f..1c19a2040 100644 --- a/snippets/addStyles.md +++ b/snippets/addStyles.md @@ -10,7 +10,7 @@ lastUpdated: 2021-01-07T00:37:43+02:00 Adds the provided styles to the given HTML element. -- Use `Object.assign()` and `ElementCSSInlineStyle.style` to merge the provided `styles` object into the style of the given element. +- Use `Object.assign()` and `HTMLElement.style` to merge the provided `styles` object into the style of the given element. ```js const addStyles = (el, styles) => Object.assign(el.style, styles); diff --git a/snippets/setStyle.md b/snippets/setStyle.md index bfff1cd20..e53f88865 100644 --- a/snippets/setStyle.md +++ b/snippets/setStyle.md @@ -9,7 +9,7 @@ lastUpdated: 2020-10-22T20:24:30+03:00 Sets the value of a CSS rule for the specified HTML element. -- Use `ElementCSSInlineStyle.style` to set the value of the CSS `rule` for the specified element to `val`. +- Use `HTMLElement.style` to set the value of the CSS `rule` for the specified element to `val`. ```js const setStyle = (el, rule, val) => (el.style[rule] = val);