From: RBRi <rb...@us...> - 2020-01-14 19:07:08
|
- **Comment**: This is fixed now. As you already mentioned the major part is fixed in Rhino. And the second part was broken because the value prop was not available. This is now also fixed. Will release shortly. --- ** [bugs:#1920] getOwnPropertyDescriptor(input, 'value').get.call is undefined** **Status:** accepted **Group:** Latest SVN **Created:** Tue Sep 12, 2017 07:25 AM UTC by Atsushi Nakagawa **Last Updated:** Sat Jan 04, 2020 05:34 PM UTC **Owner:** nobody 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. |