summaryrefslogtreecommitdiff
path: root/src/treebuilder
Commit message (Collapse)AuthorAgeFilesLines
* small fix to 'in_head_noscript' moderupindersingh/libhubbubRupinder Singh Khokhar2014-08-011-1/+2
|
* correctly handle meta element in headRupinder Singh Khokhar2014-08-011-1/+17
|
* The foreign breakout method doesn't neccessarily break out of foreign state. ↵Rupinder Singh Khokhar2014-08-012-20/+15
| | | | Hence, it is only a candidate to do so. It will be decided during reprocessing whether to breakout or not.
* Fixed check for special element. Also fixed the adoption agency.Rupinder Singh Khokhar2014-08-013-10/+36
|
* Added support for template tag. However, the client currently doesn't ↵Rupinder Singh Khokhar2014-08-0112-53/+193
| | | | support it. Hence, the only thing left to be done is to callback the client during insert_element, taking proper care of the template tags
* template insertion mode stack implementedRupinder Singh Khokhar2014-08-012-1/+82
|
* Fixed a bug in cdata block tokenisation. Also fixed handling of br close tag ↵Rupinder Singh Khokhar2014-08-011-1/+3
| | | | in body
* Correctly handled NULL characters at some placesRupinder Singh Khokhar2014-08-013-2/+17
|
* This is perhaps the best way to treat an incoming script content_model_flag. ↵Rupinder Singh Khokhar2014-08-015-15/+24
| | | | Black-boxing is mantained, & a switch is allowed only to a script data state. Script content model can't be incorporated in the style of rcdata & rawtext data, wherein it was easy to make a 1to1 matching between handlers and states. Also fixed the tokeniser to properly handle script tags. tokeniser was earlier modified in commit 7b6b8eb6fcbdd175540902ca699e7e704b90f9e0, has now been tested & bugs removed. Additionaly, in every loop of the dispatcher, it will be checked whether it is safe for tokeniser to process CDATA, and corresponding opts on the tokeniser will be set. this may slow the library down because of repeated checking in every loop. The tokeniser code has become unbearably messy due to the script tags, so a little tiding up & optimisation will be done later ;)
* Fixed dd/dt/li start tag handler once again. Also fixed resting of insertion ↵Rupinder Singh Khokhar2014-08-013-16/+45
| | | | mode. Also fixed some things in after_after_frameset state
* appending to formatting list makes use of comparing the attributes. Since we ↵Rupinder Singh Khokhar2014-08-011-2/+31
| | | | now have the facility to retrive attributes, this has now been implemented with a not so optimised brute force search
* Now, since we have the support for retriving attributes from context, the ↵Rupinder Singh Khokhar2014-08-013-45/+124
| | | | foreing breakout function is updated to incorporate checking of attributes
* Fixed some misplaced tags in in_body insertion mode. Also improved support ↵Rupinder Singh Khokhar2014-08-013-33/+55
| | | | for appending attributes to an element already in the stack
* Small fix to handle rp/rt start tag in bodyRupinder Singh Khokhar2014-08-012-1/+26
|
* Added support to get attribute names & values from the context. This slows ↵Rupinder Singh Khokhar2014-08-017-17/+161
| | | | down the library a very little bit. Optimizations will be done later.
* The foreign state is still bugy and fails some tests. It will be debugged ↵Rupinder Singh Khokhar2014-08-011-35/+75
| | | | after neccessary supporting modules are implemented
* fixed handlers of table related and select related elementsRupinder Singh Khokhar2014-08-015-16/+90
|
* added provision to get quirks mode of document from treebuilder, assuming ↵Rupinder Singh Khokhar2014-08-015-6/+126
| | | | treebuilder has one document associated with it. Also fixed table endtag handler in in_table insertion mode. Also fixed table starttag handler in in_body insertion mode
* fixed isindex and form start tag handlersRupinder Singh Khokhar2014-08-011-62/+70
|
* Fixed enumerator entries & name-type mapping. Also fixed the option/optgroup ↵Rupinder Singh Khokhar2014-08-013-26/+48
| | | | tag starting handler. Also emitted on encountering a '<' in script related state. Also fixed the check for special element.
* Fixing some steps in table insertion mode, handling input tagsRupinder Singh Khokhar2014-08-012-5/+32
|
* small fix to handle the param tag openRupinder Singh Khokhar2014-08-011-1/+4
|
* fixed content model switch at a place. Also added another step to handle xmp ↵Rupinder Singh Khokhar2014-08-013-1/+10
| | | | in body
* fixed dd,dt&li handler. Also fixed the scoping lists. Also added a missing ↵Rupinder Singh Khokhar2014-08-018-53/+69
| | | | summary tag to the start tag processor conditional.
* Fixed The adoption agency & related thingsRupinder Singh Khokhar2014-08-017-45/+105
|
* Random rumblings-- unclean commitRupinder Singh Khokhar2014-08-014-56/+86
|
* Remove client allocation function and update for new lpu API.Michael Drake2013-12-144-42/+25
|
* Only call script complete callback if scripting is enabledVincent Sanders2012-07-051-1/+2
|
* Add Script complete callbackVincent Sanders2012-07-053-1/+18
|
* Update to new NSBUILD infrastructureDaniel Silverstone2012-06-291-1/+1
| | | | 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-2616-173/+57
| | | | svn path=/trunk/hubbub/; revision=12628
* 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-121-15/+4
| | | | svn path=/trunk/hubbub/; revision=8472
* Fix broken error checking and return in hubbub_parser_completed.John Mark Bell2009-06-201-48/+48
| | | | | | | | 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
* 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
* hubbub_alloc -> hubbub_allocator_fnJohn Mark Bell2009-04-043-3/+5
| | | | svn path=/trunk/hubbub/; revision=7043
* First cut at porting hubbub's buildsystem to the core toolsJohn Mark Bell2009-03-241-44/+2
| | | | 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
* 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