Commit Graph

11980 Commits

Author SHA1 Message Date
Michael Drake
ee5efa1349 Element::getAttribute() returns DOMString? which means NULL if none. 2015-11-01 09:17:04 +00:00
Michael Drake
f65ea4b096 Add Element::getAttribute() implementation. 2015-10-31 23:23:38 +00:00
Daniel Silverstone
0247bed13f Example getter/setter pair 2015-10-31 22:59:42 +01:00
Daniel Silverstone
39d967e94b Support for event getters 2015-10-31 22:59:42 +01:00
Daniel Silverstone
47794b32ff Restore volatility introduced in fd9aa16ece 2015-10-31 22:59:41 +01:00
Michael Drake
7a6f0c765a Fix descendant bounding box calcs to work with overflow-{x|y}. 2015-10-31 19:11:24 +00:00
Daniel Silverstone
43f29e4311 Expose a few more bits 2015-10-31 20:11:10 +01:00
Michael Drake
576488f14c Don't #define things that might appear in oslib later. 2015-10-31 18:37:16 +00:00
Robert Sprowson
469147b593 Apply Sprow's fix for bug #2336.
I've not been able to test this, but since Sprow was also the original
reporter, it seems safe to apply.

Bug #2336: Colours rendered incorrectly in 4k and 64k colour modes.
2015-10-31 18:30:35 +00:00
Michael Drake
c22706b904 Update duktape to regexp-canonicalize-lookup branch.
- Add an optional 128kB lookup to optimize regexp canonicalization #411.
  https://github.com/svaarala/duktape/pull/411

This speeds up worst-case case-insensitive unicode regex handling.
2015-10-31 17:51:57 +00:00
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