Update src/runtime/internal/dom.ts

Co-authored-by: Tan Li Hau <tanhauhau@users.noreply.github.com>
pull/8412/head
Simon H 4 years ago committed by GitHub
parent 0e0eeed6b0
commit a726adc313
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -309,7 +309,7 @@ export function attr(node: Element, attribute: string, value?: string) {
* accepts numeric values, but the attribute can also be set to a string like `50%`. * accepts numeric values, but the attribute can also be set to a string like `50%`.
* If this list becomes too big, rethink this approach. * If this list becomes too big, rethink this approach.
*/ */
const always_set_through_attr = ['width', 'height']; const always_set_through_set_attribute = ['width', 'height'];
export function set_attributes(node: Element & ElementCSSInlineStyle, attributes: { [x: string]: string }) { export function set_attributes(node: Element & ElementCSSInlineStyle, attributes: { [x: string]: string }) {
// @ts-ignore // @ts-ignore

Loading…
Cancel
Save