From: RBRi <rb...@us...> - 2020-01-14 19:07:37
|
- **status**: accepted --> closed - **assigned_to**: RBRi --- ** [bugs:#1920] getOwnPropertyDescriptor(input, 'value').get.call is undefined** **Status:** closed **Group:** Latest SVN **Created:** Tue Sep 12, 2017 07:25 AM UTC by Atsushi Nakagawa **Last Updated:** Tue Jan 14, 2020 07:07 PM UTC **Owner:** RBRi Tested against latest trunk which is r14831. This is related to [#1900](https://sourceforge.net/p/htmlunit/bugs/1900/) in that its fix is required to uncover this problem. # Problem: `Object.getOwnPropertyDescriptor(HTMLInputElement, "value")` returns an instance whose `.get.call` is `undefined`. # Test: The following code: ``` <!DOCTYPE html> <html> <head> <script> function test() { var x = Object.getOwnPropertyDescriptor(i1.constructor.prototype, 'value') console.log('x = ' + x) console.log('x.get = ' + x.get) console.log('x.get.call = ' + x.get.call) } </script> </head> <body> <input type="text" id="i1" value="foo"/> <input type="button" onclick="test()" value="test"/> </body> </html> ``` Produces something similar to this in major browsers: ``` x = [object Object] x.get = function () { [native code] } x.get.call = function call() { [native code] } ``` The result with htmlunit r14831 is: ``` x = [object Object] x.get = function () { [native code] } x.get.call = undefined ``` --- Sent from sourceforge.net because htm...@li... is subscribed to https://sourceforge.net/p/htmlunit/bugs/ To unsubscribe from further messages, a project admin can change settings at https://sourceforge.net/p/htmlunit/admin/bugs/options. Or, if this is a mailing list, you can unsubscribe from the mailing list. |