On 1/19/17, 4:15 PM, "carlos.rov...@gmail.com on behalf of Carlos Rovira" <carlos.rov...@gmail.com on behalf of carlosrov...@apache.org> wrote:
>c) Rest of methods had to change to brackets notation as well....awful > >for example dialog["show"](); instead of dialog.show(); > >This is due to the fact that Chrome know about HTMLDialogElement but >Safari >/ Firefox doesn't so we must downgrade to use HTMLElement, and this class >doesn't have the referred methods. So I think that notation here, although >awful is valid, since I don't know other way to make it work... Are you sure you have to do this? IMO, if the typedefs have an HTMLDialogElement with a "show" method, the compiler should let you call dialog.show(). If dialog["show"] works in Safari/FireFox then it sounds more like a typedefs issue than a runtime issue. -Alex