Skip to content

How do I allow camel cased properties? #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
johnjeng opened this issue Feb 21, 2018 · 4 comments
Closed

How do I allow camel cased properties? #5

johnjeng opened this issue Feb 21, 2018 · 4 comments
Labels
🙋 no/question This does not need any changes

Comments

@johnjeng
Copy link

My use case is that some 3rd party library uses camel case properties

<div forLibrary='thing'> ... <div>

but this gets converted automatically to

<div for-library='thing'> ... <div>
@johnjeng
Copy link
Author

Actually, it seems like an svg issue...

I want

<svg view-box="0 0 400000 200" preserve-aspect-ratio="xMinYMin slice">

to be

<svg viewBox="0 0 400000 200" preserveAspectRatio="xMinYMin slice">

@lottamus
Copy link

We are seeing the same issue with viewBox property getting converted to view-box on svg's.

http://tutorials.jenkov.com/svg/svg-viewport-view-box.html#viewbox

@StarpTech
Copy link

You can fork it and remove the kebab-case conversion here

var name = info.name || kebab(key);

@wooorm
Copy link
Member

wooorm commented Jun 24, 2018

Hey all!

Sorry for the delay!

I thought about it a bit and I’d like to work on this now. For starters, this issue is now first tracked in wooorm/property-information#6. When that is done, we can work on updating it throughout the ecosystem.

I’ll close this now, if you have any further comments please post them there!

@wooorm wooorm closed this as completed Jun 24, 2018
wooorm added a commit that referenced this issue Jul 17, 2018
@wooorm wooorm added the 🙋 no/question This does not need any changes label Aug 12, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🙋 no/question This does not need any changes
Development

No branches or pull requests

4 participants