Skip to content

Conversation

@dummdidumm
Copy link
Member

#366

When

  1. an attribute expects input of number only
  2. its value is of type number
  3. attribute is written as string

then transform it
Example: <div tabindex="1"></div> --> <div tabindex={1}></div>

sveltejs#366

When
1. an attribute expects input of number only
2. its value is of type number
3. attribute is written as string

then transform it
Example: `<div tabindex="1"></div>` --> `<div tabindex={1}></div>`
@dummdidumm dummdidumm merged commit ddaa8e9 into sveltejs:master Aug 6, 2020
@dummdidumm dummdidumm deleted the transform-number-attrs branch August 6, 2020 05:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants