On 1/20/17, 3:04 AM, "carlos.rov...@gmail.com on behalf of Carlos Rovira"
<carlos.rov...@gmail.com on behalf of carlosrov...@apache.org> wrote:

>Hi Alex
>
>2017-01-20 1:25 GMT+01:00 Alex Harui <aha...@adobe.com>:
>
>>
>>
>> Are you sure you have to do this?
>
>
>Of Course no If I can solve :)
>
>
>> 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.
>>
>
>The problem is that Safari reports error saying that he doesn't know what
>is HTMLDialogElement
>If Safari will recognize it, I'm sure it will come with the rest of
>methods
>(show, showModal, close,...)
>
>In other words, FlexJS is compiling ok HTMLDialogElement, and Chrome works
>ok, but in Safari console gives error.
>So I think we have no solution right?
>

I guess I still don't understand.  What code is referencing
HTMLDialogElement?  Or is the code calling
createElement("HTMLDialogElement")?

And then, in Safari, what is the dialog variable pointing to and how can
it have a "show" method?  Whatever it is pointing to, if you can call
dialog["show"] you should also be able to call dialog.show at runtime.
The runtime should not care.

-Alex

Reply via email to