Kalle Olavi Niemitalo
7894e30ace
Bug 870: Don't panic if an SMJS property ID is unrecognized.
...
If ECMAScript code does obj[42], then the getProperty or setProperty
function of the JSClass of obj gets 42 as the property ID and must not
treat that as an internal error.
2006-12-03 12:07:07 +02:00
Kalle Olavi Niemitalo
aa410301f1
Bug 846: {get,set}Property check JS_InstanceOf without asserting.
...
The getProperty and setProperty functions of a JSClass must not assume
that the obj parameter points to an instance of that class. It might
instead point to another object that merely has an instance of the
class in its prototype chain. Thus, do not assert that JS_InstanceOf
returns true there. Instead, run the check even with CONFIG_FASTMEM,
and just return JS_FALSE if it fails.
2006-12-03 11:17:48 +02:00
Kalle Olavi Niemitalo
7e52d23d2f
Bug 846: Document the expected parents of form_elements_class instances.
...
This should have been in commit 36f5f73a60
.
The corresponding commit e76e047196
in the
REL_0_10 branch does include it.
2006-11-26 17:35:33 +02:00
Kalle Olavi Niemitalo
47dce0922b
Bug 846: Add plenty of JS_InstanceOf assertions and checks.
2006-11-25 16:09:38 +02:00
Kalle Olavi Niemitalo
bbf0d478e9
Bug 846: Separate JS_GetParent & JS_GetPrivate calls from initializations.
...
This will allow the types of objects to be checked before those calls.
2006-11-25 15:55:25 +02:00
Kalle Olavi Niemitalo
356678dd80
Bug 846: Document the JSClass assumed in each JS_{Set,Get}Private call.
2006-11-25 14:52:58 +02:00
Kalle Olavi Niemitalo
36f5f73a60
Bug 846: Document the expected parents of SMJS class instances.
2006-11-25 14:42:20 +02:00
Kalle Olavi Niemitalo
670ad939c3
Bug 846: Comments on the relations between JSClasses and functions.
2006-11-25 13:36:28 +02:00
Kalle Olavi Niemitalo
d6ea143f36
Bug 846: Document the private data in each SMJS class.
2006-11-25 13:19:35 +02:00
Kalle Olavi Niemitalo
8850d85998
ECMAScript: If accessKey is a surrogate, throw an error when reading it.
...
Surrogates are now treated the same way as out-of-range characters
like U+110000; if a link has such an access key, then the ECMAScript
accessKey property cannot be read. It seems currently impossible to
set such an access key though, because accesskey_string_to_unicode()
doesn't support multibyte characters yet.
2006-08-27 11:45:11 +03:00
Kalle Olavi Niemitalo
38fe5b72f7
Define and use macros for handling UTF-16 surrogates.
2006-08-24 23:30:41 +03:00
Kalle Olavi Niemitalo
2d898272c1
ECMAScript: Preserve all of Unicode when setting the accessKey property.
...
Well, almost all. U+0000 cannot be used because ELinks thinks that
means the link has no access key.
2006-08-20 17:40:27 +03:00
Kalle Olavi Niemitalo
00a5b88371
ECMAScript: Preserve all of Unicode when reading the accessKey property.
...
Setting the property does not yet support Unicode.
2006-08-20 13:37:03 +03:00
Witold Filipczyk
9f69170c2a
fixup_select_state was unnecessary
2006-05-02 12:56:05 +02:00
Witold Filipczyk
cdd86d3c20
Ecmascript: write to the variable selectedIndex. Not tested
2006-05-02 11:28:41 +02:00
Witold Filipczyk
d9d6bc23ae
Ecmascript: introduced selectedIndex
2006-05-02 09:36:23 +02:00
Witold Filipczyk
c540a9ed63
Ecmascript: more id checks
2006-05-01 19:55:43 +02:00
Witold Filipczyk
8761bf04a9
Ecmascript: check also id, not only name of form controls. This is required
...
by scripts at http://www.ecs.com.tw/
2006-05-01 19:37:54 +02:00
Witold Filipczyk
dc075685ae
ECMAScript: better handling of set action
2006-03-21 18:45:40 +01:00
witekfl
10589b04eb
Base href was lost while setting form->action by ECMAScript. This is
...
attempt to fix it
2006-02-09 22:50:30 +01:00
b4d9b7f5a6
Make SpiderMonkey consistent with SEE. Do not cache ecmascript_objs
2006-01-30 11:15:04 +01:00
9cc9db4e24
Handling onsubmit
2006-01-28 11:17:22 +01:00
Laurent MONIN
df065ead80
Remove now useless $Id: lines.
2005-10-21 09:14:07 +02:00
Petr Baudis
0f6d4310ad
Initial commit of the HEAD branch of the ELinks CVS repository, as of
...
Thu Sep 15 15:57:07 CEST 2005. The previous history can be added to this
by grafting.
2005-09-15 15:58:31 +02:00