summaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAgeFilesLines
...
* Fixes for handling of CR followed immediately by multibyte sequences.John Mark Bell2008-09-061-59/+94
| | | | | | | Pedantic whitespace changes. More paranoia surrounding entity handling. svn path=/trunk/hubbub/; revision=5266
* Fix for spurious attributes on implied tbody and colgroup by takkaria.Michael Drake2008-09-061-1/+5
| | | | svn path=/trunk/hubbub/; revision=5262
* Fix segfault caused by trampling the length of the current character when ↵John Mark Bell2008-08-181-2/+8
| | | | | | | | testing whether the 4 most recently read characters in the data state are <!--. Add a couple of assertions for paranoia. svn path=/trunk/hubbub/; revision=5146
* Refactor the generic rcdata mode so it's more like the script collection ↵Andrew Sidwell2008-08-154-39/+32
| | | | | | mode, and then remove an unused variable in the treebuilder state. svn path=/trunk/hubbub/; revision=5132
* Get make test running again.Andrew Sidwell2008-08-151-1/+2
| | | | svn path=/trunk/hubbub/; revision=5125
* Do what r5107 for system ID for public IDs.Andrew Sidwell2008-08-131-14/+4
| | | | svn path=/trunk/hubbub/; revision=5108
* Another COLLECT() -> COLLECT_MS() fix.Andrew Sidwell2008-08-131-14/+4
| | | | svn path=/trunk/hubbub/; revision=5107
* Add page which crashed, and fix the bug that caused it to do so.Andrew Sidwell2008-08-131-4/+2
| | | | svn path=/trunk/hubbub/; revision=5106
* Remove the CHAR() macro, which lets make test run again.Andrew Sidwell2008-08-131-80/+74
| | | | svn path=/trunk/hubbub/; revision=5104
* Optimise COLLECT_MS() macro.Andrew Sidwell2008-08-131-5/+3
| | | | svn path=/trunk/hubbub/; revision=5099
* Fix segfault in elimination of duplicate attributes.John Mark Bell2008-08-131-7/+8
| | | | svn path=/trunk/hubbub/; revision=5098
* Optimise comment states slightly, taking advantage of the fact that buffers ↵Andrew Sidwell2008-08-131-20/+1
| | | | | | store their own length and when emitting the comment, the buffer contains the whole comment and nothing else. svn path=/trunk/hubbub/; revision=5095
* Fix tokeniser so make test passes, with possible perf hit.Andrew Sidwell2008-08-131-18/+43
| | | | svn path=/trunk/hubbub/; revision=5093
* Use COLLECT_MS() macro rather than COLLECT() in attribute values.Andrew Sidwell2008-08-131-4/+4
| | | | svn path=/trunk/hubbub/; revision=5086
* Fix script collection now that pointers can change between calls.Andrew Sidwell2008-08-131-34/+30
| | | | svn path=/trunk/hubbub/; revision=5082
* Sanity checking for string dataJohn Mark Bell2008-08-131-0/+39
| | | | svn path=/trunk/hubbub/; revision=5080
* Remember to clear the self-closing flag when emitting a tag token.Andrew Sidwell2008-08-111-0/+3
| | | | svn path=/trunk/hubbub/; revision=5030
* - Add N_ELEMENTS() macro globally rather than using sizeof(x) / ↵Andrew Sidwell2008-08-113-60/+63
| | | | | | | | | sizeof(x[0]) everywhere - In anticipation of interning tag names, make the big map of name->type store them in lowercase - Take advantage of the previous change to optimise away many calls to strlen svn path=/trunk/hubbub/; revision=5010
* Remove reminders to support UTF-16, since we don't need to anymore.Andrew Sidwell2008-08-115-9/+1
| | | | svn path=/trunk/hubbub/; revision=5009
* - Remove an unused function from utils/string.cAndrew Sidwell2008-08-114-77/+5
| | | | | | | - Remove the no-op FINISH() macro from the tokeniser - Fix a typo in the charset detector svn path=/trunk/hubbub/; revision=5007
* Bring the treebuilder up-to-date with spec.Andrew Sidwell2008-08-111-6/+4
| | | | svn path=/trunk/hubbub/; revision=5003
* Move one step closer to getting encoding changes working.Andrew Sidwell2008-08-114-21/+24
| | | | svn path=/trunk/hubbub/; revision=5000
* Make the encoding change callback send the textual name rather than the ↵Andrew Sidwell2008-08-101-2/+6
| | | | | | mibenum value. svn path=/trunk/hubbub/; revision=4992
* Add <meta charset> support in the treebuilder.Andrew Sidwell2008-08-104-7/+74
| | | | svn path=/trunk/hubbub/; revision=4991
* Simplify in_head.c; make sure return codes from handle_in_head() get ↵Andrew Sidwell2008-08-105-25/+6
| | | | | | propagated properly. svn path=/trunk/hubbub/; revision=4990
* Switch to using hubbub_error for reprocessing state from just a bool, to ↵Andrew Sidwell2008-08-1027-209/+214
| | | | | | allow for encoding change info to be returned more easily. svn path=/trunk/hubbub/; revision=4989
* Remove process_in_head(), since it was identical in behaviour to ↵Andrew Sidwell2008-08-108-30/+8
| | | | | | handle_in_head(). Remove prototypes for functions no longer existent. svn path=/trunk/hubbub/; revision=4987
* Propagate more return codes up the chain from the token emitter.Andrew Sidwell2008-08-091-55/+38
| | | | svn path=/trunk/hubbub/; revision=4980
* Propagate the use of hubbub_error up into at least a bit of the treebuilder.Andrew Sidwell2008-08-093-5/+10
| | | | svn path=/trunk/hubbub/; revision=4979
* Move tokeniser.c across to using hubbub_error for return codes, not bools, ↵Andrew Sidwell2008-08-093-229/+241
| | | | | | so that "encoding change" requests can be sent back down the chain from the treebuilder at some point. svn path=/trunk/hubbub/; revision=4978
* Remove some commented-out code that doesn't reflect the spec's intention. ↵Andrew Sidwell2008-08-091-11/+3
| | | | | | Filed a bug upstream on the issue so the spec's wording can be fixed. (http://www.w3.org/Bugs/Public/show_bug.cgi?id=5944) svn path=/trunk/hubbub/; revision=4976
* Remove "spec up to date" lines in source.Andrew Sidwell2008-08-094-8/+1
| | | | svn path=/trunk/hubbub/; revision=4975
* Bring encoding detection tests up-to-date with html5lib, fix Hubbub-specific ↵Andrew Sidwell2008-08-091-51/+109
| | | | | | ones, and bring the csdetect algorithm up-to-date with that in the spec. svn path=/trunk/hubbub/; revision=4974
* Make scripting enable flag configurableJohn Mark Bell2008-08-046-4/+20
| | | | svn path=/trunk/hubbub/; revision=4895
* Really fix handling of entities in attributesJohn Mark Bell2008-08-041-1/+1
| | | | svn path=/trunk/hubbub/; revision=4894
* Fix previous commit.Andrew Sidwell2008-08-041-6/+14
| | | | svn path=/trunk/hubbub/; revision=4893
* Fix bug in hubbub & html5lib tests relating to parsing entities ending ↵Andrew Sidwell2008-08-041-1/+1
| | | | | | without semicolons in attribute values. svn path=/trunk/hubbub/; revision=4892
* Micro-optimisationAndrew Sidwell2008-08-041-2/+1
| | | | svn path=/trunk/hubbub/; revision=4890
* Rearrange emitting functions so they're all clumped together at the bottom ↵Andrew Sidwell2008-08-041-162/+172
| | | | | | of the file. svn path=/trunk/hubbub/; revision=4889
* Refactor tokeniser token-emitting bits to remove unnecessary conditionals.Andrew Sidwell2008-08-041-63/+62
| | | | svn path=/trunk/hubbub/; revision=4888
* Fix buildsystem for cross compilationJohn Mark Bell2008-08-031-2/+2
| | | | svn path=/trunk/hubbub/; revision=4884
* Change tokeniser->context.chars from a hubbub_string whose ptr part is never ↵Andrew Sidwell2008-08-031-158/+155
| | | | | | used to simply tokeniser->context.pending. svn path=/trunk/hubbub/; revision=4882
* Remove some excessive indentation.Andrew Sidwell2008-08-031-27/+23
| | | | svn path=/trunk/hubbub/; revision=4881
* Remove the now-unnecessary COLLECT_*NOBUF() macros, replace them with the ↵Andrew Sidwell2008-08-031-79/+68
| | | | | | single statements they expanded to. svn path=/trunk/hubbub/; revision=4880
* Remove tokeniser->to_buf, SWITCH(), and COLLECT_CHAR(), none of which are ↵Andrew Sidwell2008-08-031-54/+26
| | | | | | now necessary. Should should provide a small speedup. svn path=/trunk/hubbub/; revision=4873
* - Replace NDEBUG #ifdefs with #if 0s, to avoid slowing down Hubbub when ↵Andrew Sidwell2008-08-031-44/+22
| | | | | | | | | profiling - Fix a few instances of where the wrong COLLECT*() macros were used - Always use emit_current_chars(tokeniser) rather than emit_character_token(tokeniser, tokeniser->context.chars), to make sure that the pointer is always set correctly svn path=/trunk/hubbub/; revision=4872
* Stop pretending Hubbub has an internal encoding.Andrew Sidwell2008-08-021-2/+1
| | | | svn path=/trunk/hubbub/; revision=4859
* Fix copy-and-paste error in previous commit.Andrew Sidwell2008-07-311-1/+1
| | | | svn path=/trunk/hubbub/; revision=4845
* Handle CRs correctly everwhere.Andrew Sidwell2008-07-311-3/+123
| | | | svn path=/trunk/hubbub/; revision=4844
* Handle NUL properly everywhere it should be.Andrew Sidwell2008-07-311-5/+12
| | | | svn path=/trunk/hubbub/; revision=4843