de468660f1
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-28 17:20:22 +01:00
71871edd43
Maybe this time it won't crash
2006-01-28 17:08:45 +01:00
Jonas Fonseca
c223f6ce94
Sed the expected output instead of the output from sgml-parser
2006-01-28 15:12:49 +01:00
Jonas Fonseca
03c467bcbf
Move URI normalization to the test library
2006-01-28 15:03:19 +01:00
7c7541f4d1
parent, self and top are the same since now
2006-01-28 14:15:55 +01:00
52d3a6411d
Sort links when necessary
2006-01-28 14:13:41 +01:00
dacb694e33
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-28 12:11:29 +01:00
997f61bb32
Use document_view instead of view_state. It is safer probably
2006-01-28 12:07:00 +01:00
9cc9db4e24
Handling onsubmit
2006-01-28 11:17:22 +01:00
6e4c80a29e
Avoid memleak
2006-01-28 08:37:58 +01:00
Jonas Fonseca
6a592b073c
BUILD: Do not create .vimrc files
...
They are considered insecure, use the newly added ftplugin instead. This
also removes the config/vimrc master file.
2006-01-28 05:25:02 +01:00
Eric Wald
c6ba201e0c
CONTRIB: Add ftplugin for setting Vim to the ELinks coding style
...
This will replace the .vimrc infrastructure currently used, which is
considered insecure.
2006-01-28 05:21:45 +01:00
Jonas Fonseca
99067f0497
Merge with git+ssh://pasky/srv/git/elinks.git
2006-01-28 04:52:04 +01:00
Jonas Fonseca
b6b6d3c67e
DOM: Allocate all node strings when doing incremental rendering
...
This changes init_dom_node_() to take an allocated argument saying whether
to allocate or not. If the value is -1, node->allocated will be set to the
value of node->parent->allocated. This way the value is inherited like we
do it in the menu code. It should be a sane default since we eventually
want not to rely on the 'underlying' source of the document and there will
be less variables to pass around.
2006-01-28 04:51:25 +01:00
Jonas Fonseca
24a9d103b4
DOM: Add allocated flag to struct dom_node; replaces subtype flags
...
Prepare for handling of allocated strings in the various nodes.
2006-01-28 04:50:04 +01:00
Miciah Dashiel Butler Masters
2e9d433402
SMJS: mangle_deb_bugnumbers: add <pre>; set rendered view
...
Use the newly available view_state object to change to rendered view
and wrap everything in <pre> ... </pre> if the document MIME type is
text/plain.
2006-01-28 03:27:45 +00:00
Miciah Dashiel Butler Masters
495fb2805b
SMJS: Give user scripts access to the view_state
...
Introduce the view_state object to ECMAScript with properties .uri and
.plain and pass the current view_state to preformat hooks.
2006-01-28 03:27:45 +00:00
Jonas Fonseca
3b183c1685
Merge with git+ssh://pasky/srv/git/elinks.git
2006-01-28 03:36:47 +01:00
Jonas Fonseca
95c1de2315
Fix handling of incomplete processing instructions
...
When doing incremental rendering we now require the whole thing to be there
and that there is room for two tokens in the scanner token table. This is
necessary because we have to generate both a processing target token and a
processing data token to make life simpler for the parser.
Remove processing instruction data case label from the main parser loop. It
is safer this way since it already assumes that the processing target token
has been stored.
2006-01-28 03:35:36 +01:00
Jonas Fonseca
823c594524
Use ssize_t instead of size_t for length since it must carry a signed value
2006-01-28 03:24:16 +01:00
Jonas Fonseca
00c4e0bfa2
Do not attempt to read *string when string == scanner->end
...
There might be other places that needs to be reviewd for this.
2006-01-28 03:23:06 +01:00
Jonas Fonseca
d92a074e40
Fix parsing of '<a< b>' where the scanner didn't rewind to the proper place
...
Add test for this tag soup combo.
2006-01-28 03:21:27 +01:00
Laurent MONIN
5114c9d110
Trim trailing whitespaces.
2006-01-28 01:59:22 +01:00
Laurent MONIN
bae3b58146
Fix a potential memleak.
2006-01-28 01:58:00 +01:00
Jonas Fonseca
e5e06764c4
Improve checks for incompleteness when parsing attributes
...
Check whether there are '=' and value tokens before handling them. If there
is any doubt the whole attribute structure is 'pushed back' into the
stream. That way incremental parsing will not add the value as a new
attribute because the name token was handled in the previous parsing run.
2006-01-28 01:40:56 +01:00
Jonas Fonseca
4ab1dde874
Preserve the scanner state when it is not the 'default' state
...
This is necessary to make it possible to resume parsing of element
attributes. Allows the incomplete string in the parsing state struct to
be unset.
2006-01-28 01:24:30 +01:00
Jonas Fonseca
c6e83d1d9c
Assert parsing depth >= parser stack depth
...
Like the comment says popping parsing nodes during incremental parsing
might trigger this.
2006-01-28 01:12:03 +01:00
Jonas Fonseca
9e7b0d4fa3
Remove assertion logic from parse_sgml_attributes()
...
They are getting out of hand and making it hard to use the function in
'unusual' situations (like when resuming parsing inside elements).
2006-01-28 01:09:05 +01:00
Jonas Fonseca
1e104afbba
Improve error checking when adding nodes
...
Fail with SGML_PARSER_CODE_MEM_ALLOC.
2006-01-28 01:05:42 +01:00
Jonas Fonseca
74728cab05
Also set the node subtype for <?xml-stylesheet?>
2006-01-28 01:00:28 +01:00
Jonas Fonseca
bccf5512d6
Force an incomplete token for quoted attribute values when there's no end
2006-01-28 00:56:48 +01:00
Jonas Fonseca
a2376609e3
Expand the testing of incremental parsing
...
There are still some bugs to resolve.
2006-01-28 00:50:06 +01:00
1cd1786f9c
Merge with git+ssh://pasky.or.cz/srv/git/elinks.git
2006-01-27 18:06:31 +01:00
7a6a5918fe
Test file for document.write
2006-01-27 16:55:41 +01:00
b1b66db850
Success. document.write works for me.
2006-01-27 16:54:39 +01:00
9c9fa1d81c
Defined document.write and document.writeln for SEE
2006-01-27 14:55:53 +01:00
8bf45d0ece
Spidermonkey's document.write and document.writeln defined. They work,
...
but rendering doesn't work
2006-01-27 13:29:38 +01:00
2551fe3525
Render html written by document.write. I'm not sure if format_html_part
...
is called right way
2006-01-27 12:41:35 +01:00
62d42380f8
Added ret param for document.write
2006-01-27 12:07:45 +01:00
2f0490cb04
Eval embedded scripts at once
2006-01-27 10:26:58 +01:00
6761b3995d
Avoided code duplication
2006-01-27 10:08:19 +01:00
Jonas Fonseca
0f8aa77ebb
Add test for incremental SGML parsing
...
It is a loop that parses the same small document with various read sizes.
The sgml-parser program is updated to take --stdin option taking a the read
size as a required parameter.
2006-01-27 07:49:15 +01:00
Jonas Fonseca
b25cd27232
Add support incremental parsing
...
That is, add the last parts that saves and resumes previous incomplete
parsing states. Now the parsing stack push handler checks if the parent has
a resume flag set. When set, the incomplete fragment to resume is restored
and the new source fragment appended and parsing is continued.
2006-01-27 07:47:17 +01:00
Jonas Fonseca
9d91994f3c
Propone updating the scanner->state until incompleteness has been checked
...
That way the scanner state is meaningful when resuming during incremental
parsing.
2006-01-27 07:41:42 +01:00
Jonas Fonseca
c18740b30d
Revert FreeBSD sed changes; they don't work for GNU sed
2006-01-27 02:52:44 +01:00
Jonas Fonseca
c4d22f9c24
Fix shell scripts to work better with FreeBSD's sed
2006-01-27 02:32:48 +01:00
Jonas Fonseca
20baf3b207
Newer versions of AsciiDoc (7.0.5 atleast) needs to be passed --unsafe
...
Detect this in configure and set ASCIIDOC_FLAGS accordingly.
2006-01-27 02:32:06 +01:00
Jonas Fonseca
3824ea99a7
Mention API docs, and how to build them
2006-01-27 01:06:59 +01:00
e8030e09fd
Set text/plain for errors
2006-01-26 18:35:58 +01:00
8d4f44f2f1
Content-Type handling
2006-01-26 18:20:13 +01:00