Commit Graph

11770 Commits

Author SHA1 Message Date
Daniel Silverstone
3aacba15f8 Don't call up if the parent's jscontext has gone NULL in the meantime 2015-10-31 18:26:43 +01:00
Daniel Silverstone
60c52e1eaf Change click handling to fire_dom_event 2015-10-31 18:01:38 +01:00
Daniel Silverstone
310162474a Add fire_dom_event, it's in a bad place but we can move it later 2015-10-31 18:01:38 +01:00
Daniel Silverstone
4ca737408c Handle events 2015-10-31 18:01:38 +01:00
Daniel Silverstone
b1d477219d Shunt the handling of new elements 2015-10-31 18:01:38 +01:00
Daniel Silverstone
00eb6a8e88 Further work toward event handling 2015-10-31 18:01:38 +01:00
Daniel Silverstone
5a107a466b Initial work toward JS event support 2015-10-31 18:01:38 +01:00
Michael Drake
71f296a41c Fix dom document leak for framesets. 2015-10-31 16:14:40 +00:00
Michael Drake
519775a65c Don't leak frame scrollbars. 2015-10-31 16:14:40 +00:00
Dave Higton
f2e56834be When an image content cannot be converted prevent export as sprite
If an image is not converted, for example it is a CMYK jpeg this
prevents a crash if trying to export the image as a RISC OS sprite.
2015-10-31 15:49:34 +00:00
Michael Drake
b1533a7f76 Stop utf8 conversion leaking its strings. 2015-10-31 13:44:14 +00:00
Michael Drake
67cbdf6bef Don't fail on URLs with no host. 2015-10-31 13:44:14 +00:00
Michael Drake
25cd49034c Style guide adherence. 2015-10-31 13:44:06 +00:00
Michael Drake
78067fc29a Log window.alert() messages. 2015-10-31 09:23:56 +00:00
Michael Drake
396b445599 Add failing test.
1. Add "id" attribute.
2. Remove "ID" attribute.
3. Check id value.

In NetSurf it isn't removed, in Firefox it is.
There's a case sensitivity/conversion issue somewhere.

It the test works when we add/remove with the same case.
2015-10-29 16:55:42 +00:00
Michael Drake
0fabb20cc5 Add support for Element::removeAttribute. 2015-10-29 16:51:57 +00:00
Michael Drake
218839d05a Fix title. 2015-10-29 16:50:36 +00:00
Michael Drake
9198e80c24 Remove space. 2015-10-29 14:27:21 +00:00
Michael Drake
d795f1ca2d Add support for Element::setAttribute method.
This fixes test/js/dom-html-div-element.html test case.
2015-10-29 14:13:49 +00:00
Michael Drake
6098646e72 Add binding for DIV element's align getter/setter, and test.
Currently the second part of the test fails.
2015-10-29 11:47:53 +00:00
Vincent Sanders
8ff9abf5b6 update gtk accelerators to follow other browsers usage 2015-10-29 08:13:07 +00:00
Vincent Sanders
8c04742e39 Use automatically generated unsigned long bindings on HTMLTableRowElement 2015-10-25 23:58:28 +00:00
Vincent Sanders
78daba6f3c Use automatically generated unsigned long bindings on HTMLTableCellElement 2015-10-25 23:23:25 +00:00
Vincent Sanders
d7924a5849 add automaticaly generated property setter and getters to HTMLPreElement 2015-10-25 23:23:25 +00:00
Vincent Sanders
3a67d34f69 Use automatically generated unsigned long bindings on HTMLLIElement 2015-10-25 23:23:25 +00:00
Vincent Sanders
b07f4db579 Use automatically generated unsigned long bindings on HTMLInputElement 2015-10-25 23:23:25 +00:00
Daniel Silverstone
36bf691cee Add .id and .className support to Element along with a test 2015-10-25 21:47:35 +01:00
Daniel Silverstone
0423704eb1 Fix env.sh some more [ns-pull] for zsh 2015-10-25 21:27:51 +01:00
Vincent Sanders
4458b96ff2 Use automatically generated unsigned long bindings on HTMLImageElement 2015-10-25 09:17:41 +00:00
Michael Drake
1bb7d295bb Make nsurl utf8 string conversion function consistent with nsurl API. 2015-10-25 09:03:20 +00:00
Vincent Sanders
dc0729150c add automaticaly generated property setter and getters to HTMLOListElement 2015-10-24 19:39:59 +01:00
Chris Young
37c715c522 Update root certificates 2015-10-24 15:48:06 +01:00
Chris Young
ef202aeef5 Merge branch 'chris/display-idna'
This enables frontends to display international domain names in UTF-8, instead of the encoded versions.
It is disabled by default, as some frontends cannot display the full range of UTF-8 characters in their status or URL bar.
2015-10-24 15:21:47 +01:00
Chris Young
aabea8eceb Update RISC OS frontend to new API 2015-10-24 15:12:57 +01:00
Chris Young
27adf07fb7 Update gtk frontend to new API 2015-10-24 15:12:57 +01:00
Chris Young
65b510fbc3 Rework IDN URL retrieval to return an nserror 2015-10-24 15:12:57 +01:00
Chris Young
5206518a75 Add URL fragment 2015-10-24 15:12:57 +01:00
Chris Young
ac8eccd035 Enable RISC OS to display decoded IDNs in the URL bar (subject to local charset restrictions) 2015-10-24 15:12:57 +01:00
Chris Young
53141c7089 Modify the status bar link text so it shows either the ASCII encoded or IDN host, depending on the set option.
Default is to display the encoded version as this provides some security making phishing domains more obvious, and a lot of our frontends are unable to display the full range of UTF-8 characters on the status bar.
Displaying the decoded address in the URL bar requires frontends to be updated (GTK and Amiga done already), and the same caveats apply.
2015-10-24 15:12:57 +01:00
Chris Young
dd38897a26 Enable Amiga frontend to show decoded IDNs subject to local charset restrictions.
TODO: Statusbar link text
2015-10-24 15:12:57 +01:00
Chris Young
920cb0571d Check we've obtained the host string 2015-10-24 15:12:56 +01:00
Chris Young
6afda499c2 Show the IDN decoded form in the URL bar on GTK if the option is set. 2015-10-24 15:12:56 +01:00
Chris Young
5f5ca2c205 Add a function to retrieve the decoded version of IDNA URLs 2015-10-24 15:12:56 +01:00
Daniel Silverstone
c752c85618 Correct some incorrect error case handling and add tests to demonstrate fix 2015-10-21 18:55:39 +02:00
Daniel Silverstone
2f52338328 Fix up Element to return null rather than undefined, add tests 2015-10-21 18:46:43 +02:00
Daniel Silverstone
79068dd50f Support pushing NULL nodes, by pushing a JS 'null' object instead 2015-10-21 18:32:40 +02:00
Daniel Silverstone
629287c224 Revert "allow for libdom node calls which return NULL to indicate no node."
This reverts commit 37ea372a10.
2015-10-21 18:30:42 +02:00
Daniel Silverstone
0ddb60d82a Revert "The node acessors should return javacript null not an error"
This reverts commit 0645bc7570.
2015-10-21 18:30:36 +02:00
Vincent Sanders
0645bc7570 The node acessors should return javacript null not an error 2015-10-20 22:49:41 +01:00
Vincent Sanders
37ea372a10 allow for libdom node calls which return NULL to indicate no node. 2015-10-20 22:36:42 +01:00