I could be wrong, but I'm pretty sure the typedefs/externs prevent the renaming. I think it knows that HTMLElement.style is a CSSStyleDeclaration.
On 7/13/17, 4:15 PM, "Harbs" <harbs.li...@gmail.com> wrote: >One thing I’m curious about: > >Why does the Google compiler not rename style properties even when we use >dot notation? Is it because the object is owned by an external >HTMLElement object? I’d like to get a better grasp on when Object typed >variables are renamed and when not. I’ve taken to using bracket notation >pretty exclusively (at least for object literals) because I never know >when they will be renamed. I’d like to understand this better. > > >> On Jul 14, 2017, at 1:38 AM, Greg Dove <greg.d...@gmail.com> wrote: >> >> imo, I agree these should be using the javascript camel case properties, >> but perhaps we need to do a sweep through all the code for that. >