2017-10-22 03:45 BST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0002537NetSurfJavascriptpublic2017-09-09 11:03
Reporterlionwes 
Assigned ToDaniel Silverstone 
SeveritymajorReproducibilityalways 
StatusacknowledgedResolutionopen 
PlatformARM9OSlinuxOS Versionlinux 3.10
Product Version3.6 
Target VersionFixed in Version 
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
Fixed in CI build #
Reported in CI build #
URL of problem page
Attached Files
  • txt file icon log.txt (14,283 bytes) 2017-05-08 14:25 -
    (0.000008) utils/log.c:101 nslog_init: NetSurf version '3.6 (19th November 2016)'
    (0.000833) utils/log.c:110 nslog_init: NetSurf on <Linux>, node <192.168.10.111>, release <3.10.101>, version <#229 PREEMPT Mon Apr 24 09:11:23 CST 2017>, machine <armv5tejl>
    Choices = /usr/share/netsurf_3.6/Choices
    (0.010383) utils/nsoption.c:655 nsoption_read: Successfully opened '/usr/share/netsurf_3.6/Choices' for Options file
    messages = /usr/share/netsurf_3.6/Messages
    (0.020317) utils/messages.c:189 messages_add_from_file: Loading Messages from '/usr/share/netsurf_3.6/Messages'
    (0.062142) content/handlers/image/image_cache.c:381 image_cache_init: Image cache initilised with a limit of 3145728 hysteresis of 629145
    (0.062950) render/html_css_fetcher.c:64 html_css_fetcher_initialise: html_css_fetcher_initialise called for x-ns-css
    (0.065225) content/fetchers/curl.c:1414 fetch_curl_register: curl_version libcurl/7.21.3 OpenSSL/1.0.1e zlib/1.2.8 libssh2/1.5.0
    (0.177583) utils/useragent.c:68 user_agent_build_string: Built user agent "NetSurf/3.6 (Linux)"
    (0.178092) content/fetchers/curl.c:1488 fetch_curl_register: ca_path: '/etc/ssl/certs'
    (0.178483) content/fetchers/curl.c:1500 fetch_curl_register: cURL linked against openssl
    (0.179017) content/fetchers/curl.c:136 fetch_curl_initialise: Initialise cURL fetcher for http
    (0.179350) content/fetchers/curl.c:136 fetch_curl_initialise: Initialise cURL fetcher for https
    (0.179675) content/fetchers/data.c:59 fetch_data_initialise: fetch_data_initialise called for data
    (0.182417) content/fetchers/resource.c:285 fetch_resource_initialise: redirect url for adblock.css
    (0.184950) content/fetchers/resource.c:285 fetch_resource_initialise: redirect url for default.css
    (0.194017) content/fetchers/resource.c:285 fetch_resource_initialise: redirect url for internal.css
    (0.197375) content/fetchers/resource.c:285 fetch_resource_initialise: redirect url for quirks.css
    (0.204042) content/fetchers/resource.c:285 fetch_resource_initialise: redirect url for wrong resolution or depth 1600x1200 at 8 bit per pixel
    user.css
    (0wrong resolution or depth 1408x1056 at 8 bit per pixel
    .206433) conwrong resolution or depth 1280x1024 at 8 bit per pixel
    tent/fetcherwrong resolution or depth 1152x864 at 8 bit per pixel
    s/resource.cwrong resolution or depth 1024x768 at 8 bit per pixel
    :285 fetch_rwrong resolution or depth 960x720 at 8 bit per pixel
    esource_initwrong resolution or depth 800x600 at 8 bit per pixel
    ialise: rediwrong resolution or depth 768x576 at 8 bit per pixel
    rect url forwrong resolution or depth 720x576 at 8 bit per pixel
     credits.htmwrong resolution or depth 720x480 at 8 bit per pixel
    l
    (0.215325wrong resolution or depth 640x480 at 8 bit per pixel
    ) content/fewrong resolution or depth 640x400 at 8 bit per pixel
    tchers/resouwrong resolution or depth 512x384 at 8 bit per pixel
    rce.c:285 fewrong resolution or depth 320x240 at 8 bit per pixel
    tch_resourcewrong resolution or depth 320x200 at 8 bit per pixel
    _initialise:wrong resolution or depth 1600x1200 at 16 bit per pixel
     redirect urwrong resolution or depth 1408x1056 at 16 bit per pixel
    l for licencwrong resolution or depth 1280x1024 at 16 bit per pixel
    e.html
    (0.2wrong resolution or depth 1152x864 at 16 bit per pixel
    17808) contewrong resolution or depth 1024x768 at 16 bit per pixel
    nt/fetchers/wrong resolution or depth 960x720 at 16 bit per pixel
    resource.c:2wrong resolution or depth 800x600 at 16 bit per pixel
    85 fetch_reswrong resolution or depth 768x576 at 16 bit per pixel
    ource_initiawrong resolution or depth 720x576 at 16 bit per pixel
    lise: redirewrong resolution or depth 720x480 at 16 bit per pixel
    ct url for wwrong resolution or depth 640x480 at 16 bit per pixel
    wrong resolution or depth 640x400 at 16 bit per pixel
    
    (0.225583) wrong resolution or depth 512x384 at 16 bit per pixel
    content/fetcwrong resolution or depth 320x240 at 16 bit per pixel
    hers/resourcwrong resolution or depth 320x200 at 16 bit per pixel
    e.c:285 fetcwrong resolution or depth 1600x1200 at 24 bit per pixel
    h_resource_iwrong resolution or depth 1408x1056 at 24 bit per pixel
    nitialise: rwrong resolution or depth 1280x1024 at 24 bit per pixel
    edirect url wrong resolution or depth 1152x864 at 24 bit per pixel
    for maps.htmwrong resolution or depth 1024x768 at 24 bit per pixel
    l
    (0.257983wrong resolution or depth 960x720 at 24 bit per pixel
    ) content/fewrong resolution or depth 800x600 at 24 bit per pixel
    tchers/resouwrong resolution or depth 768x576 at 24 bit per pixel
    rce.c:285 fewrong resolution or depth 720x576 at 24 bit per pixel
    tch_resourcewrong resolution or depth 720x480 at 24 bit per pixel
    _initialise:wrong resolution or depth 640x480 at 24 bit per pixel
     redirect urwrong resolution or depth 640x400 at 24 bit per pixel
    l for netsurwrong resolution or depth 512x384 at 24 bit per pixel
    f.png
    (0.26wrong resolution or depth 320x240 at 24 bit per pixel
    2367) contenwrong resolution or depth 320x200 at 24 bit per pixel
    t/llcache.c:wrong resolution or depth 1600x1200 at 32 bit per pixel
    3369 llcachewrong resolution or depth 1408x1056 at 32 bit per pixel
    _initialise:wrong resolution or depth 1280x1024 at 32 bit per pixel
     llcache iniwrong resolution or depth 1152x864 at 32 bit per pixel
    tialising wiwrong resolution or depth 1024x768 at 32 bit per pixel
    th a limit owrong resolution or depth 960x720 at 32 bit per pixel
    f 9437184 bywrong resolution or depth 800x600 at 32 bit per pixel
    tes
    >>>>>>>wrong resolution or depth 768x576 at 32 bit per pixel
    >>>+++++++++wrong resolution or depth 720x576 at 32 bit per pixel
    ++  js_initiwrong resolution or depth 720x480 at 32 bit per pixel
    alise
    (0.26wrong resolution or depth 640x480 at 32 bit per pixel
    3592) frontewrong resolution or depth 640x400 at 32 bit per pixel
    nds/framebufwrong resolution or depth 512x384 at 32 bit per pixel
    fer/gui.c:46wrong resolution or depth 320x240 at 32 bit per pixel
    7 process_cmwrong resolution or depth 320x200 at 32 bit per pixel
    dline: argc 10, argv 0xbee65ca4
    (1.547366) frontends/framebuffer/gui.c:2165 main: calling browser_window_create
    (1.548166) content/handlers/javascript/duktape/dukky.c:567 js_newcontext: Creating new duktape javascript context
    (1.834225) frontends/framebuffer/gui.c:1597 create_normal_browser_window: Normal window
    (1.834825) frontends/framebuffer/gui.c:1202 create_toolbar: Using toolbar layout blfsrutc
    (1.835200) frontends/framebuffer/gui.c:1236 create_toolbar: toolbar adding b
    (1.835650) frontends/framebuffer/gui.c:1387 create_toolbar: xpos is 26
    (1.836166) frontends/framebuffer/gui.c:1236 create_toolbar: toolbar adding l
    (1.836566) frontends/framebuffer/gui.c:1387 create_toolbar: xpos is 54
    (1.837083) frontends/framebuffer/gui.c:1236 create_toolbar: toolbar adding f
    (1.837525) frontends/framebuffer/gui.c:1387 create_toolbar: xpos is 78
    (1.837875) frontends/framebuffer/gui.c:1236 create_toolbar: toolbar adding s
    (1.838458) frontends/framebuffer/gui.c:1387 create_toolbar: xpos is 106
    (1.838816) frontends/framebuffer/gui.c:1236 create_toolbar: toolbar adding r
    (1.839358) frontends/framebuffer/gui.c:1387 create_toolbar: xpos is 132
    (1.839766) frontends/framebuffer/gui.c:1236 create_toolbar: toolbar adding u
    (1.840083) frontends/framebuffer/gui.c:1387 create_toolbar: xpos is 798
    (1.840616) frontends/framebuffer/gui.c:1236 create_toolbar: toolbar adding c
    (1.840975) frontends/framebuffer/gui.c:1387 create_toolbar: xpos is 770
    (1.841300) frontends/framebuffer/gui.c:1236 create_toolbar: toolbar adding t
    (1.841891) frontends/framebuffer/gui.c:1387 create_toolbar: xpos is 744
    (1.842250) frontends/framebuffer/gui.c:1236 create_toolbar: toolbar adding u
    (1.842883) frontends/framebuffer/gui.c:1387 create_toolbar: xpos is 744
    (1.843308) frontends/framebuffer/fbtk/fbtk.c:125 fbtk_set_mapping: setting mapping on 0x13fdf00 to 1
    (1.843925) frontends/framebuffer/gui.c:1628 create_normal_browser_window: status bar 0x13fe650 at 0,462
    (1.844750) frontends/framebuffer/fbtk/fbtk.c:125 fbtk_set_mapping: setting mapping on 0x13fde30 to 1
    (1.845383) desktop/browser.c:1943 browser_window_navigate: bw 0x139b080, url file:///usr/share/netsurf_3.6/javascript_test.html
    (1.845941) desktop/browser.c:2042 browser_window_navigate: Loading 'file:///usr/share/netsurf_3.6/javascript_test.html'
    (1.871516) frontends/framebuffer/fbtk/scroll.c:337 hscroll_redraw: hscroll 209
    (1.944875) frontends/framebuffer/fetch.c:68 fetch_filetype: unix path /usr/share/netsurf_3.6/javascript_test.html
    (1.961816) content/content.c:76 content__init: url file:///usr/share/netsurf_3.6/javascript_test.html -> 0x13ffb90
     111 c->enable_scripting  = 1
     222 c->enable_scripting  = 1
    (1.969208) render/html_css.c:564 html_css_new_stylesheets: 2 fetches active
    (1.969950) render/html_css.c:591 html_css_new_stylesheets: 3 fetches active
    (1.970333) content/content.c:656 content_add_user: content file:///usr/share/netsurf_3.6/javascript_test.html (0x13ffb90), user 0x10a784 0x139c000
    INITIAL
    BEFORE_HTML
    BEFORE_HTML
    (1.978366) content/handlers/javascript/duktape/dukky.c:599 js_newcompartment: Yay, new compartment, win_priv=0x139b080, doc_priv=0x13ffb90
    (1.979258) content/handlers/javascript/duktape/dukky.c:88 dukky_create_object: name=NETSURF_DUKTAPE_PROTOTYPE_WINDOW nargs=2
    (1.979958) content/handlers/javascript/duktape/dukky.c:80 dukky_populate_object: Call the init function
    (1.980683) Window.bnd:27 dukky_window___init: win=0x139b080 htmlc=0x13ffb90
    (1.981383) Window.bnd:29 dukky_window___init: URL is file:///usr/share/netsurf_3.6/javascript_test.html
    (1.981758) content/handlers/javascript/duktape/dukky.c:109 dukky_create_object: created
    (1.982691) render/html.c:689 dom_default_action_DOMNodeInserted_cb: javascript context: 0x139b160
    BEFORE_HEAD
    BEFORE_HEAD
    IN_HEAD
    AFTER_HEAD
    IN_BODY
    IN_BODY
    IN_BODY
    IN_BODY
    IN_BODY
    IN_BODY
    IN_BODY
    IN_BODY
    IN_BODY
    IN_BODY
    (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
    IN_BODY
    IN_BODY
    IN_BODY
    IN_BODY
    AFTER_BODY
    AFTER_BODY
    (1.999083) content/content.c:275 content_convert: content file:///usr/share/netsurf_3.6/javascript_test.html (0x13ffb90)
    (1.999558) render/html.c:1142 html_convert: quirks set to 0
    (2.000100) render/html.c:1146 html_convert: 2 fetches active
    (2.017308) frontends/framebuffer/fetch.c:68 fetch_filetype: unix path /usr/share/netsurf_3.6/default.css
    (2.032291) frontends/framebuffer/fetch.c:68 fetch_filetype: unix path /usr/share/netsurf_3.6/user.css
    (2.034566) content/content.c:76 content__init: url file:///usr/share/netsurf_3.6/user.css -> 0x140cfc8
    (2.041483) content/content.c:656 content_add_user: content file:///usr/share/netsurf_3.6/user.css (0x140cfc8), user 0x10a784 0x13ad8b8
    (2.148400) content/content.c:275 content_convert: content file:///usr/share/netsurf_3.6/user.css (0x140cfc8)
    (2.149350) render/html_css.c:106 html_convert_css_callback: done stylesheet slot 3 'file:///usr/share/netsurf_3.6/user.css'
    (2.149800) render/html_css.c:108 html_convert_css_callback: 1 fetches active
    (2.150575) content/content.c:76 content__init: url file:///usr/share/netsurf_3.6/default.css -> 0x141ba88
    (2.151716) content/content.c:656 content_add_user: content file:///usr/share/netsurf_3.6/default.css (0x141ba88), user 0x10a784 0x13adf38
    (2.250666) content/content.c:275 content_convert: content file:///usr/share/netsurf_3.6/default.css (0x141ba88)
    (2.251708) render/html_css.c:106 html_convert_css_callback: done stylesheet slot 0 'file:///usr/share/netsurf_3.6/default.css'
    (2.252308) render/html_css.c:108 html_convert_css_callback: 0 fetches active
    (2.252825) render/html.c:1199 html_begin_conversion: Completing parse
    AFTER_AFTER_BODY
    html_script_exec  1 ....
    html_script_exec  2 ....
    html_forms_get_forms  1 ....
    html_forms_get_forms  2 ....
    html_forms_get_forms  3 ....
    html_forms_get_forms  4 ....
    html_forms_get_forms  6 ....
    (2.254066) content/handlers/javascript/duktape/dukky.c:1041 js_fire_event: Event: load (doc=0x1404c80, target=(nil))
    (2.255366) content/handlers/javascript/duktape/dukky.c:80 dukky_populate_object: Call the init function
    (2.258533) content/handlers/javascript/duktape/dukky.c:88 dukky_create_object: name=NETSURF_DUKTAPE_PROTOTYPE_EVENT nargs=1
    (2.259358) content/handlers/javascript/duktape/dukky.c:80 dukky_populate_object: Call the init function
    (2.259866) content/handlers/javascript/duktape/dukky.c:109 dukky_create_object: created
    (2.260733) render/html.c:602 html_finish_conversion: DOM to box (0x13ffb90)
    html_forms_get_control_for_node  1 ....
    parse_button_element  1 ....
    parse_button_element  2 ....
    html_forms_get_control_for_node  2 ....
    (2.290825) render/html.c:113 html_box_convert_done: Done XML to box (0x13ffb90)
    (2.293483) frontends/framebuffer/gui.c:155 widget_scroll_y: window scroll
    (2.293883) content/content.c:803 content_open: content 0x13ffb90 file:///usr/share/netsurf_3.6/javascript_test.html
    (2.296483) desktop/browser_history.c:522 browser_window_history_add: Creating thumbnail for file:///usr/share/netsurf_3.6/javascript_test.html
    (2.297066) frontends/framebuffer/bitmap.c:54 bitmap_create: width 100, height 86, state 5
    (2.297725) frontends/framebuffer/bitmap.c:72 bitmap_create: bitmap 0x14241e0
    (2.298358) frontends/framebuffer/bitmap.c:285 bitmap_render: width 100, height 86
    (2.299158) content/content.c:591 content_scaled_redraw: Content 0x13ffb90 782x673 ctx:0xbee65718
    (2.421075) content/urldb.c:3116 urldb_set_thumbnail: Setting bitmap on file:///usr/share/netsurf_3.6/javascript_test.html
    (2.421833) desktop/browser.c:1180 browser_window_update_favicon: fetching general favicon from 'resource:favicon.ico'
    (2.422758) frontends/framebuffer/bitmap.c:285 bitmap_render: width 100, height 86
    (2.423741) content/content.c:591 content_scaled_redraw: Content 0x13ffb90 782x673 ctx:0xbee65728
    (2.551016) frontends/framebuffer/fbtk/scroll.c:337 hscroll_redraw: hscroll 209
    txt file icon log.txt (14,283 bytes) 2017-05-08 14:25 +
  • jpg file icon button can not be activated.jpg (74,985 bytes) 2017-05-08 14:27 -
    jpg file icon button can not be activated.jpg (74,985 bytes) 2017-05-08 14:27 +
  • html file icon javascript_test.html (188 bytes) 2017-05-08 14:28

-Relationships
+Relationships

-Notes
Daniel Silverstone

~0001581

Daniel Silverstone (administrator)

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.
+Notes

-Issue History
Date Modified Username Field Change
2017-05-08 14:25 lionwes New Issue
2017-05-08 14:25 lionwes File Added: log.txt
2017-05-08 14:27 lionwes File Added: button can not be activated.jpg
2017-05-08 14:28 lionwes File Added: javascript_test.html
2017-05-08 14:28 lionwes Tag Attached: HTMLUnknownElement
2017-05-08 14:28 lionwes Tag Attached: javascript
2017-06-09 20:43 Vincent Sanders Status new => acknowledged
2017-09-09 11:02 Daniel Silverstone Assigned To => Daniel Silverstone
2017-09-09 11:02 Daniel Silverstone Status acknowledged => assigned
2017-09-09 11:03 Daniel Silverstone Status assigned => acknowledged
2017-09-09 11:03 Daniel Silverstone Note Added: 0001581
+Issue History