summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
* Support falling back to space separated charsetDaniel Silverstone2017-09-091-2/+17
| | | | | | | | | | | | | | | | In some cases, for example, Apple Mail, programs generate HTML with apallingly bad meta tags such as: <meta content="text/html charset=utf-8"> This is bad because *a* no http-equiv="Content-Type" and *b* because the content type and charset do not have a separating semi-colon. Sadly, Chrome et-al support this, so we need to in Hubbub. This change adjusts the content="" parser to retry if it cannot find a semicolon, and work forwards to first whitespace instead. Fixes: #2549
* make unused variable macro more portableVincent Sanders2016-02-061-1/+1
|
* Fix doxygen warningsVincent Sanders2015-09-013-6/+6
|
* Fix up for new buildsystem. Remove unused compat hacks.John-Mark Bell2014-11-161-13/+0
|
* strncasecmp definition is in strings.h which was not being includedVincent Sanders2014-09-042-0/+2
|
* Remove client allocation function and update for new lpu API.Michael Drake2013-12-147-85/+47
|
* Fix uninitialised pause variableVincent Sanders2012-07-131-0/+2
|
* Add ability to pause tokenisationVincent Sanders2012-07-104-2/+42
|
* Remove unused and unneeded extraneous_chunk APIVincent Sanders2012-07-071-35/+0
|
* Insert data at correct point in input stream.John-Mark Bell2012-07-053-8/+51
|
* Only call script complete callback if scripting is enabledVincent Sanders2012-07-051-1/+2
|
* Add Script complete callbackVincent Sanders2012-07-053-1/+18
|
* add hubbub_parser_insert_chunkVincent Sanders2012-07-031-0/+27
|
* Update to new NSBUILD infrastructureDaniel Silverstone2012-06-295-5/+5
| | | | svn path=/trunk/hubbub/; revision=14006
* Fix handling of xmlns attributes on foreign content root elementsJohn Mark Bell2011-10-271-2/+3
| | | | svn path=/trunk/hubbub/; revision=13083
* Fix build with GCC 4.6John Mark Bell2011-07-2617-179/+68
| | | | svn path=/trunk/hubbub/; revision=12628
* Fix profile and coverage targetsJohn Mark Bell2010-12-061-1/+3
| | | | svn path=/trunk/hubbub/; revision=11021
* Remove init/final and embed entity trie at build time. r=vinceDaniel Silverstone2010-12-049-2540/+78
| | | | svn path=/trunk/hubbub/; revision=10976
* Make locale-agnosticJohn Mark Bell2009-07-121-2/+13
| | | | svn path=/trunk/hubbub/; revision=8474
* Hand off comparison to utility string comparisons.John Mark Bell2009-07-121-1/+2
| | | | svn path=/trunk/hubbub/; revision=8473
* Fix string comparisons.John Mark Bell2009-07-122-34/+7
| | | | svn path=/trunk/hubbub/; revision=8472
* Better guard for the Norcroft hackery.John Mark Bell2009-07-021-5/+11
| | | | | | When building for Windows, replace strncasecmp with calls to _strnicmp svn path=/trunk/hubbub/; revision=8266
* Fix broken error checking and return in hubbub_parser_completed.John Mark Bell2009-06-203-53/+67
| | | | | | | | Avoid potentially broken passing of address of an enum where uint32_t * is expected. Pedantic casting for Norcroft. Particularly ugly #ifdef __CC_NORCROFT in utils.h to ensure we have a strncasecmp implementation with that compiler/libraries. svn path=/trunk/hubbub/; revision=7892
* Fix use of uninitialised variable caused by braindead variable naming.John Mark Bell2009-05-271-3/+3
| | | | svn path=/trunk/hubbub/; revision=7583
* Make assignment of doctype component pointers clearer. Also removes a ↵John Mark Bell2009-05-271-9/+6
| | | | | | redundant pointer increment. svn path=/trunk/hubbub/; revision=7581
* Remove redundant code.John Mark Bell2009-05-271-13/+0
| | | | svn path=/trunk/hubbub/; revision=7580
* Initialise variables to stop GCC 4.4 complaining (credit: Jeroen Habraken)John Mark Bell2009-05-051-4/+4
| | | | svn path=/trunk/hubbub/; revision=7398
* Lose trailing commas.John Mark Bell2009-04-153-3/+3
| | | | | | GCC 2.95 compatibility. svn path=/trunk/hubbub/; revision=7095
* Merged revisions 7071-7082 via svnmerge from John Mark Bell2009-04-152-262/+278
| | | | | | | | | | | | | | | | svn://source.netsurf-browser.org/branches/jmb/hubbub-errors ........ r7077 | jmb | 2009-04-15 11:32:43 +0100 (Wed, 15 Apr 2009) | 2 lines Don't bother attempting to allow restarting the parser after an error in the treebuilder. It's far too complicated. ........ r7078 | jmb | 2009-04-15 11:46:12 +0100 (Wed, 15 Apr 2009) | 2 lines Document what should happen in exceptional circumstances ........ svn path=/trunk/hubbub/; revision=7083
* Manually merge r7070 into trunkJohn Mark Bell2009-04-1524-788/+1338
| | | | svn path=/trunk/hubbub/; revision=7082
* Improve error handling in the tokeniserJohn Mark Bell2009-04-061-62/+154
| | | | svn path=/trunk/hubbub/; revision=7052
* Remove hubbub_parser_parse_extraneous_chunk -- this is not supported yet. ↵John Mark Bell2009-04-041-0/+2
| | | | | | Surround implementation with #if 0 pending its reintroduction svn path=/trunk/hubbub/; revision=7045
* ConstifyJohn Mark Bell2009-04-041-2/+2
| | | | svn path=/trunk/hubbub/; revision=7044
* hubbub_alloc -> hubbub_allocator_fnJohn Mark Bell2009-04-0411-18/+22
| | | | svn path=/trunk/hubbub/; revision=7043
* Move hubbub_error_from_string into testutils.h and remove it from the library.John Mark Bell2009-04-041-25/+0
| | | | svn path=/trunk/hubbub/; revision=7041
* First cut at porting hubbub's buildsystem to the core toolsJohn Mark Bell2009-03-245-225/+10
| | | | svn path=/trunk/hubbub/; revision=6837
* Fix typoJohn Mark Bell2009-03-111-1/+1
| | | | svn path=/trunk/hubbub/; revision=6770
* Fix form association. It kinda helps to associate the form-related object, ↵John Mark Bell2009-03-101-3/+2
| | | | | | rather than whatever happens to be on the top of the stack at the time. svn path=/trunk/hubbub/; revision=6768
* Sync treebuilder with specJohn Mark Bell2009-03-1019-563/+528
| | | | svn path=/trunk/hubbub/; revision=6764
* Sync tokeniser tests with html5lib.John Mark Bell2009-03-101-12/+19
| | | | | | | | Sync tokeniser implementation with the spec. Fix handling of \0 in the tag open state. The unicodeCharacters test is disabled, as json-c doesn't like it. svn path=/trunk/hubbub/; revision=6755
* Fix bug 2673645John Mark Bell2009-03-091-2/+5
| | | | | | <form><option>foo</option></form> => abort. svn path=/trunk/hubbub/; revision=6746
* Actually associate textareas with formsJohn Mark Bell2009-02-201-7/+10
| | | | svn path=/trunk/hubbub/; revision=6578
* Convert UTF-16 meta charsets to UTF-8, given we'll have auto-detected them ↵John Mark Bell2009-01-231-26/+31
| | | | | | as UTF-8 in the chardet stage. (Credit: Andi Sidwell) svn path=/trunk/hubbub/; revision=6180
* And another one. Now warning free. Huzzah.John Mark Bell2009-01-081-0/+1
| | | | svn path=/trunk/hubbub/; revision=6000
* Add documentation from a couple of missing parametersJohn Mark Bell2009-01-081-2/+4
| | | | svn path=/trunk/hubbub/; revision=5999
* And some moreJohn Mark Bell2009-01-082-3/+3
| | | | svn path=/trunk/hubbub/; revision=5998
* Squash more doxygen warnings. Don't use html tags in comments, folks.John Mark Bell2009-01-081-25/+23
| | | | svn path=/trunk/hubbub/; revision=5997
* Make doxygen produce API documentation. I guess it helps if you enable the ↵John Mark Bell2009-01-082-2/+2
| | | | | | | | right options. Fix a couple more doxygen warnings. svn path=/trunk/hubbub/; revision=5996
* Use doxygen to create API documentation.John Mark Bell2009-01-087-31/+53
| | | | | | Add a bunch of extra commentary to stop doxygen warning. svn path=/trunk/hubbub/; revision=5994
* Ok, let's actually compile the code before committing it.John Mark Bell2009-01-061-0/+1
| | | | svn path=/trunk/hubbub/; revision=5971