OLD | NEW |
(Empty) | |
| 1 Test that HTML element constructors' toString is just Function.prototype.toStrin
g, and that changing <HTML ELEMENT>.toString.toString doesn't change the output
of <HTML ELEMENT>.toString(). |
| 2 |
| 3 HTMLElement.toString(): function HTMLElement() { [native code] } |
| 4 |
| 5 HTMLElement.toString.toString(): function toString() { [native code] } |
| 6 |
| 7 HTMLElement.toString === Function.prototype.toString: true |
| 8 |
| 9 After setting HTMLElement.toString.toString to "function() { return "foobar"; }" |
| 10 |
| 11 HTMLElement.toString(): function HTMLElement() { [native code] } |
| 12 |
| 13 HTMLElement.toString.toString(): foobar |
| 14 |
| 15 HTMLElement.toString === Function.prototype.toString: true |
| 16 |
| 17 HTMLDivElement.toString(): function HTMLDivElement() { [native code] } |
| 18 |
| 19 HTMLDivElement.toString.toString(): foobar |
OLD | NEW |