WICG / web-printing

Other
12 stars 0 forks source link

Should attributes use camelCase? #6

Closed tomayac closed 1 year ago

tomayac commented 1 year ago

https://www.w3.org/TR/design-principles/#casing-rules

Compare attributes['printer-name'] vs. attributes.printerName.

GrapeGreen commented 1 year ago

I don't have a strong opinion on this: the main reason why I decided for kebab-case was to align as close as possible with IPP attributes and make porting existing code easier. If you believe that alignment with Web Platform Design Principles outweighs this benefit, I'll be happy to follow :)

tomayac commented 1 year ago

Number of web developers using this API > Number of web developers aware of IPP

reillyeon commented 1 year ago

If we can do this transformation algorithmically then I'm okay with matching the web platform style. If the spec needs to have a mapping table then I'm less happy with it.

GrapeGreen commented 1 year ago

I don't foresee any problems with establishing an automatic mapping from xxx-yyy-zzz to xxxYyyZzz here.