John Mark Bell
01316168fc
Fix bugs in charset detection.
...
Strip BOM from parser input, as it confuses libxml.
Ignore non-ASCII-compatible charsets declared in meta tag (the parser
defaults to 8 bit, so if it's managed to extract a meta charset, then it
must be ASCII-compatible, so a non-ASCII-compatible meta charset is lies).
Fixes WightLink timetable and 1726341.
svn path=/trunk/netsurf/; revision=3304
2007-05-29 18:03:07 +00:00
John Mark Bell
00377eec58
Import font containing symbols we need for list items.
...
(Un)Install font appropriately at runtime.
Make list markers use the right characters.
svn path=/trunk/netsurf/; revision=3280
2007-05-14 22:57:11 +00:00
James Bursa
7c43ff2537
Return an error from html_convert() if the base stylesheet fails to load, instead of continuing to layout which will assert.
...
svn path=/trunk/netsurf/; revision=3266
2007-05-06 00:41:12 +00:00
James Bursa
d27f5c65da
Fix warning: format '%u' expects type 'unsigned int', but argument 3 has type 'size_t'.
...
svn path=/trunk/netsurf/; revision=3264
2007-05-02 03:20:01 +00:00
Richard Wilson
9c3dc045a0
Set minimum META refresh delay to 1s
...
svn path=/trunk/netsurf/; revision=3246
2007-04-07 22:51:06 +00:00
John Mark Bell
4d55f43a3d
Object sizes do not apply when calculating the extent of descendent
...
bounding boxes. (fixes 1601881)
svn path=/trunk/netsurf/; revision=3240
2007-04-07 02:29:32 +00:00
John Mark Bell
f1fba1908f
Fix embedded object + display: none; crash (1695751) (c.f r3236)
...
svn path=/trunk/netsurf/; revision=3239
2007-04-06 23:48:26 +00:00
John Mark Bell
94d12a96e7
Squash access to freed memory.
...
Actually process form inputs which have been styled display:none;
This needs revisiting after 1.0 as the following will still break:
<form ..>
<div style="display:none;">
<input type="hidden" name="foo" value="bar"/>
</div>
<input type="submit" name="submit" value="submit"/>
</form>
The children of the div are not processed (which is correct for display
purposes, but results in the hidden input being ignored entirely). A
more correct fix would be to perform form input -> gadget creation
orthogonally from box tree generation; then styling will have no effect.
svn path=/trunk/netsurf/; revision=3236
2007-04-06 12:05:25 +00:00
John Mark Bell
6eba75b1c6
Recognise <image> as a synonym for <img> (fixes 1692426)
...
svn path=/trunk/netsurf/; revision=3231
2007-04-01 20:21:58 +00:00
John Mark Bell
e7fe3678f0
Deal with more ways in which meta refresh URLs can be invalid.
...
svn path=/trunk/netsurf/; revision=3229
2007-04-01 16:41:22 +00:00
John Mark Bell
ccfc0e7516
Fix abort on attempted destruction of CONTENT_DIRECTORY (1690222)
...
svn path=/trunk/netsurf/; revision=3228
2007-03-28 22:56:54 +00:00
John Mark Bell
a96ef2a906
Fix assertion when table has negative mbp (1579981)
...
svn path=/trunk/netsurf/; revision=3222
2007-03-25 16:20:10 +00:00
John Mark Bell
cabed36421
Fix handling of scrollbar addition to blocks which have height/width ==
...
AUTO (fixes 1567430)
svn path=/trunk/netsurf/; revision=3220
2007-03-24 23:47:44 +00:00
John Mark Bell
5e0bec495c
Fix FP exception when right-aligned tables with margin: auto are nested
...
(interaction with floats, resulting in margin[TOP] == AUTO) (fixes
1662931)
svn path=/trunk/netsurf/; revision=3218
2007-03-24 21:03:36 +00:00
John Mark Bell
64b229d0d6
Make <object> attribute handling more spec compliant
...
svn path=/trunk/netsurf/; revision=3215
2007-03-22 22:47:24 +00:00
John Mark Bell
9c048ad076
Fix invalidation of unwanted contents.
...
svn path=/trunk/netsurf/; revision=3214
2007-03-19 00:04:09 +00:00
John Mark Bell
703b5fea73
Ensure content owners check that they are still interested in a content
...
when receiving notification that the content's in error. This prevents
content pointers being corrupted when redirects occur. Fixes 1522002,
1551475.
svn path=/trunk/netsurf/; revision=3211
2007-03-18 17:09:55 +00:00
John Mark Bell
e80ce80a98
Default form field maxlength to UINT_MAX (fixes 1620540)
...
svn path=/trunk/netsurf/; revision=3205
2007-03-11 23:48:29 +00:00
John Mark Bell
9cf5122797
Content handlers should not call warn_user - they should broadcast the
...
error using content_broadcast and leave it to the content owner(s) to
decide what to do about it.
Only use warn_user for top-level contents.
svn path=/trunk/netsurf/; revision=3204
2007-03-11 22:08:57 +00:00
John Mark Bell
58c217cbee
Transliterate form submissions (requires an iconv implementation that
...
understands //TRANSLIT - both glibc & libiconv's do, as do Iconv
modules >= 0.08)
Require Iconv 0.08
svn path=/trunk/netsurf/; revision=3203
2007-03-11 13:58:15 +00:00
John Mark Bell
cd3fb4a7cc
Ensure multipart/form-data submissions are in the correct charset.
...
(fixes 1617129).
There are issues with unrepresentable characters, which I'm
investigating; they appear to be due to Iconv/UnicodeLib and not
NetSurf's usage of them.
svn path=/trunk/netsurf/; revision=3190
2007-02-26 00:32:07 +00:00
John Mark Bell
e57a90e91c
Fix handling of % signs in textarea initial value. (Fixes 1617123)
...
svn path=/trunk/netsurf/; revision=3180
2007-02-11 23:21:05 +00:00
John Mark Bell
3b40e0f5fc
Reparse entire document if meta charset resulting in changed document
...
encoding is encountered (fixes 1389126)
svn path=/trunk/netsurf/; revision=3176
2007-02-10 21:34:22 +00:00
John Mark Bell
a9b34bd990
Work around libxml oddness in allowing document meta encoding to
...
override external charset information.
svn path=/trunk/netsurf/; revision=3175
2007-02-10 19:53:41 +00:00
John Mark Bell
25213dca24
Fix handling of cookies in unverifiable transactions caused by a redirect from a fetch into a browser window which was varifiable.
...
svn path=/trunk/netsurf/; revision=3165
2007-02-02 23:08:13 +00:00
John Mark Bell
8cf2e40daa
Bring handling of submission of blank file inputs in line with other browsers.
...
Tidy up fetch_post_convert while I'm at it.
svn path=/trunk/netsurf/; revision=3159
2007-01-30 23:19:21 +00:00
James Bursa
a0b6661eb6
Make GTK build compile on FreeBSD.
...
svn path=/trunk/netsurf/; revision=3154
2007-01-29 22:27:15 +00:00
James Bursa
11aceb370a
Add html_dump_frameset() to help understand and debug frames.
...
svn path=/trunk/netsurf/; revision=3148
2007-01-24 23:16:02 +00:00
James Bursa
b6630787c5
Default frame margin 0 instead of -1. Fix marginheight parsing.
...
svn path=/trunk/netsurf/; revision=3147
2007-01-24 22:53:09 +00:00
James Bursa
75526f77b7
Fix box_visible() to return a bool.
...
svn path=/trunk/netsurf/; revision=3144
2007-01-14 13:02:09 +00:00
James Bursa
bda01b3135
Fix parsing error when an empty HTML data is returned. Add HTTP status and other information to status bar.
...
svn path=/trunk/netsurf/; revision=3140
2007-01-13 00:21:15 +00:00
Richard Wilson
4f1ca7d14c
Don't require frames to specify a URL (fixes frame names not being recognised)
...
svn path=/trunk/netsurf/; revision=3135
2007-01-03 20:11:09 +00:00
James Bursa
d117eb4527
Stop animated images rendering for hidden or fallback boxes.
...
svn path=/trunk/netsurf/; revision=3128
2006-12-31 23:47:17 +00:00
Richard Wilson
f4b8d3a009
Reflow iframes on layout (fix 1617625)
...
svn path=/trunk/netsurf/; revision=3126
2006-12-30 02:10:46 +00:00
Richard Wilson
1353585036
Implement form targets (fix 1619094)
...
svn path=/trunk/netsurf/; revision=3125
2006-12-30 00:34:26 +00:00
James Bursa
367c2aea88
Fix height of absolutely positioned inline blocks with an object. Fix layout of list markers with no text.
...
svn path=/trunk/netsurf/; revision=3122
2006-12-26 21:51:08 +00:00
James Bursa
e2d7630ae8
Remove wrong kind of free for data allocated using talloc.
...
svn path=/trunk/netsurf/; revision=3113
2006-12-08 22:18:15 +00:00
James Bursa
246352fb97
Allocate new styles for implied boxes using talloc instead of css_duplicate_style().
...
svn path=/trunk/netsurf/; revision=3112
2006-12-08 22:17:45 +00:00
James Bursa
b6b768f521
Improved tracking of memory usage. c->size is now exclusive of talloc size, and the two are added to find the full size.
...
svn path=/trunk/netsurf/; revision=3103
2006-12-03 22:34:26 +00:00
Michael Drake
ba23e4b693
Update project URL.
...
svn path=/trunk/netsurf/; revision=3073
2006-11-27 15:35:18 +00:00
James Bursa
ec563e60ca
Add browser_window_reformat() and use it instead of content_reformat() to remove browser_window calls from html.c.
...
svn path=/trunk/netsurf/; revision=3071
2006-11-26 21:04:42 +00:00
James Bursa
21af6f7fda
Move frames-related code out of browser.c into a new file. Remove some browser_window calls from html.c.
...
svn path=/trunk/netsurf/; revision=3070
2006-11-26 20:11:20 +00:00
Michael Drake
725d8c94a2
Media-descriptors are case-insensitive.
...
svn path=/trunk/netsurf/; revision=3044
2006-11-11 09:43:47 +00:00
Michael Drake
5adbed530c
Fix gap between list marker and list content.
...
svn path=/trunk/netsurf/; revision=3040
2006-11-10 14:53:46 +00:00
James Bursa
df7912f96b
Fix distortion of list marker images.
...
svn path=/trunk/netsurf/; revision=3039
2006-11-07 21:49:03 +00:00
James Bursa
f546f6b5e7
Implement list-style-type circle, square, none, and decimal.
...
svn path=/trunk/netsurf/; revision=3034
2006-11-05 19:50:34 +00:00
James Bursa
f4f17f905b
More work on lists. Simplify the implementation to a BLOCK for display: list-item, with a marker box on box->list_marker.
...
svn path=/trunk/netsurf/; revision=3031
2006-11-05 12:58:24 +00:00
John Mark Bell
7bd710a71c
Initial work for display: list-item support
...
svn path=/trunk/netsurf/; revision=3028
2006-11-04 19:53:22 +00:00
John Mark Bell
2d4276ee41
Ensure page encoding isn't trampled.
...
svn path=/trunk/netsurf/; revision=3027
2006-11-04 19:52:49 +00:00
James Bursa
b6c8e435cd
Implement absolute positioned inlines.
...
svn path=/trunk/netsurf/; revision=3026
2006-11-04 19:17:11 +00:00