Closed Bug 677518 Opened 9 years ago Closed 7 years ago
keys() should return an error if it doesn't exist when calling against a HTML canvas element
Build identifier: Mozilla/5.0 (X11; Linux i686; rv:6.0) Gecko/20100101 Firefox/6.0 As a result of an iRC discussion with Mihai, decided we should dump some error if the .keys() helper function does not exist/apply for an object 1. Open the test page 2. Open the web console 3. From the command line, type: var heartObject = $("heart") keys(heartObject) Actual result: nothing Expected: There should be an error, at liest 'undefined' Notes: Object.keys(heartObject) triggers "" in the console, so i guess keys() can do that too. You guys decide what to put there, but leaving empty results in not a good option in my opinion.
the example now should be using $("#heart") on everything from fx16 up. This returns "constructor" as typed above. When I run keys($("#heart")) directly, I got . I think we can kill this.
Status: NEW → RESOLVED
Closed: 7 years ago
Component: Developer Tools → Developer Tools: Console
Resolution: --- → WORKSFORME
You need to log in before you can comment on or make changes to this bug.