MantisBT - NetSurf
View Issue Details
0002537NetSurfJavascriptpublic2017-05-08 14:252019-07-19 09:31
Reporterlionwes 
Assigned ToDaniel Silverstone 
PrioritynormalSeveritymajorReproducibilityalways
StatusclosedResolutionfixed 
PlatformARM9OSlinuxOS Versionlinux 3.10
Product Version3.6 
Target Version3.9Fixed in Version3.9 
Fixed in CI build #4620
Reported in CI build #
URL of problem page
Summary0002537: RuhRoh, couldn't find a prototype, HTMLUnknownElement it is
DescriptionI wrote a sample code to test Netsurf, but when i click the button can not work.
Will show log :
(1.993933) content/handlers/javascript/duktape/dukky.c:64 dukky_populate_object: RuhRoh, couldn't find a prototype, HTMLUnknownElement it is
(1.994575) content/handlers/javascript/duktape/dukky.c:80 dukky_populate_object: Call the init function
(1.995408) content/handlers/javascript/duktape/dukky.c:939 dukky_register_event_listener_for: have registered listener for 0x1409fa8.click



Additional Informationthe code I test :

javascript_test.html
<!DOCTYPE html>
<html>
<body>

<h1>My first paragraph JavaScript</h1>


click on the button:



<button type="button" onclick="alert('Welcome!')">Click Here</button>

</body>
</html>
TagsHTMLUnknownElement, javascript
Attached Filestxt log.txt (14,283) 2017-05-08 14:25
https://bugs.netsurf-browser.org/mantis/file_download.php?file_id=495&type=bug
jpg button can not be activated.jpg (74,985) 2017-05-08 14:27
https://bugs.netsurf-browser.org/mantis/file_download.php?file_id=496&type=bug
jpg

html javascript_test.html (188) 2017-05-08 14:28
https://bugs.netsurf-browser.org/mantis/file_download.php?file_id=497&type=bug

Notes
(0001581)
Daniel Silverstone   
2017-09-09 11:03   
The reported (unknown element) bit is fixed, we now have button elements in the binding.

However click handling is still not there, so the issue is nominally still open.
(0001904)
Daniel Silverstone   
2019-05-06 15:30   
This now functions, though the alert only goes to the verbose log. We don't pop up alerts.
(0002014)
Vincent Sanders   
2019-07-19 09:31   
we believe this issue has been resolved in NetSurf 3.9

Issue History
2017-05-08 14:25lionwesNew Issue
2017-05-08 14:25lionwesFile Added: log.txt
2017-05-08 14:27lionwesFile Added: button can not be activated.jpg
2017-05-08 14:28lionwesFile Added: javascript_test.html
2017-05-08 14:28lionwesTag Attached: HTMLUnknownElement
2017-05-08 14:28lionwesTag Attached: javascript
2017-06-09 20:43Vincent SandersStatusnew => acknowledged
2017-09-09 11:02Daniel SilverstoneAssigned To => Daniel Silverstone
2017-09-09 11:02Daniel SilverstoneStatusacknowledged => assigned
2017-09-09 11:03Daniel SilverstoneStatusassigned => acknowledged
2017-09-09 11:03Daniel SilverstoneNote Added: 0001581
2019-05-06 15:30Daniel SilverstoneStatusacknowledged => resolved
2019-05-06 15:30Daniel SilverstoneResolutionopen => fixed
2019-05-06 15:30Daniel SilverstoneFixed in Version => 3.9
2019-05-06 15:30Daniel SilverstoneTarget Version => 3.9
2019-05-06 15:30Daniel SilverstoneFixed in CI build # => 4620
2019-05-06 15:30Daniel SilverstoneNote Added: 0001904
2019-07-19 09:31Vincent SandersStatusresolved => closed
2019-07-19 09:31Vincent SandersNote Added: 0002014