$.data(key, value) places too many double quotes

#426 · closed · 1 comments

View on GitHub ↗

yannik-b

### Current behavior When trying to do ```js let colorMode = 'dark'; $('html').data('bs-theme', colorMode); ``` the result in the DOM looks like this: ```html <html data-bs-theme=""dark""> ``` ### Expected behavior The attribute should only have one pair of double quotes, like this: ```html <html data-bs-theme="dark"> ```

Comments

fabiospampinato

That's on purpose and documented in the migration guide: https://github.com/fabiospampinato/cash/blob/master/docs/migration_guide.md#data