about summary refs log tree commit diff stats
path: root/src/html/htmlparser.nim
Commit message (Collapse)AuthorAgeFilesLines
* Move HTML parsing into Chamebptato2023-08-151-2749/+0
| | | | Operation "modularize Chawan somewhat" part 2
* Move charsets into chakasubptato2023-08-141-2/+3
| | | | Operation "modularize Chawan somewhat" part 1
* Fixes & workarounds to compile on Nim 2.0.0bptato2023-08-011-21/+21
| | | | | | | | | | | | | | * Import punycode, as it has been removed from stdlib. * Fix some syntax errors * Apparently you can no longer compare distinct pointers with nil. Add explicit comparisons with typeof(nil) instead. * htmlparser: rename _ to other, as semantics of _ have changed. (Quite a shame, it looked better with _. Oh well.) * Explicitly specify mm:refc, as the browser OOMs with orc for some reason. Confirmed to compile & run on 2.0.0, 1.6.14, 1.6.12, 1.6.10 and 1.6.8. (<1.6.8 it's broken & wontfix.)
* htmlparser: replace stray insert callbptato2023-07-271-1/+1
|
* htmlparser: fix <th> not closing table cellsbptato2023-07-271-1/+1
| | | | | <th> should close table cells, but was missing from the table cell closing list for some reason.
* htmlparser: remove stray nil comparisonbptato2023-07-271-4/+3
|
* htmlparser: remove nil comparisons for Handlebptato2023-07-271-39/+49
| | | | This makes it possible to use non-reference types as Handle.
* html: include SEARCH tag in parserbptato2023-07-251-2/+3
|
* Fix compilation on nim 1.6.10bptato2023-07-171-2/+3
| | | | It appears there is a compiler bug we have to work around there.
* htmlparser: fix regressionbptato2023-07-171-2/+2
| | | | Fixed unintended variable shadowing introduced during refactoring
* htmlparser: make getTemplateContent optionalbptato2023-07-151-3/+4
|
* htmlparser: check required callbacksbptato2023-07-151-0/+13
|
* htmlparser: add parse error handlingbptato2023-07-151-166/+248
|
* htmlparser: correct outdated commentbptato2023-07-141-9/+3
|
* htmlparser: fix form association regressionbptato2023-07-101-6/+10
| | | | | | | associateWithForm was checking whether the element was in the same tree as the form, however associateWithForm is called when element is has not been inserted into the tree yet. As a fix, pass the intended parent and perform the check on that.
* htmlparser: remove more references to dombptato2023-07-091-10/+28
|
* htmlparser: more Option wrapping, remove dom referencebptato2023-07-091-18/+21
|
* htmlparser: fix fragment case, fix head bugbptato2023-07-091-8/+13
| | | | Also, wrap head in an Option
* htmlparser: decouple from DOMbptato2023-07-091-524/+885
| | | | | Instead of directly appending nodes to the DOM, use a DOMBuilder interface.
* return Result[T, JSError] from fromJSbptato2023-07-021-1/+0
|
* use =destroy instead of finalizersbptato2023-07-011-0/+2
| | | | | This should help with moving to ORC in the future. (Also, finalizers do not work very well in the first place.)
* Get rid of the .jserr pragmabptato2023-06-191-5/+7
|
* Add display/output encodingbptato2023-05-191-33/+32
| | | | Some encodings are still missing
* Refactor config, add charset optsbptato2023-05-161-40/+60
| | | | Only document-charset supported for now.
* htmlparser: add missing reprocess token for trbptato2023-04-081-0/+1
| | | | This makes tr work correctly without tbody.
* dom: store index among siblings for nodesbptato2023-03-101-1/+1
|
* css/cascade: remove scoped sheetsbptato2023-01-071-6/+0
| | | | ...in favor of handling all style elements like other browsers
* Correct attribute functions, de-extern jserrbptato2022-12-261-1/+1
| | | | | | Instead of unnecessarily marking every jserr function as *, add the used pragma (so the C compiler can get rid of them later.) Also, use the correct definition of attribute namespace.
* dom: correct constructors, more create functionsbptato2022-12-261-3/+4
|
* More DOM workbptato2022-12-191-7/+8
|
* Add JS support to documentsbptato2022-12-181-26/+42
|
* git wtf momentbptato2022-12-151-11/+0
|
* Merge branch 'master' of ssh://192.168.0.230/~/x/chabptato2022-12-151-0/+11
|\
| * htmltokenizer: implement a small todobptato2022-12-151-5/+11
| |
* | htmltokenizer: implement a small todobptato2022-12-151-14/+19
|/
* Fix decoder bugs, move decoder to encoding/bptato2022-12-101-5/+5
|
* Add support for the encoding standard, fix parseLegacyColorbptato2022-12-101-8/+104
| | | | Also, fix a bug in the
* htmlparser: fix bug where tokens wouldn't be reprocessed after close_cellbptato2022-12-071-0/+1
|
* Add textareabptato2022-11-281-33/+41
| | | | Editing is implemented using an external editor (like vi).
* Fix adoption agency algorithm bugsbptato2022-11-271-5/+11
|
* Fix some table layout issuesbptato2022-11-251-1/+1
|
* More JS bindingsbptato2022-09-131-2/+20
|
* Add SupportedFormAssociatedElementsbptato2022-07-301-5/+4
|
* Fix incorrect use of del()bptato2022-07-291-11/+11
|
* Fix yet another parser bugbptato2022-07-181-2/+1
|
* Fix another parser bugbptato2022-07-171-3/+4
|
* Fix a parser bugbptato2022-07-171-2/+47
| | | | Plus a few warnings.
* Implement select element displaybptato2022-07-171-1/+9
| | | | | You can't actually use them yet. But at least they don't flood the screen with options now.
* Fix formsbptato2022-07-171-1/+1
|
* Clean up HTML namespace mess, enable processInForeignContentbptato2022-07-141-17/+83
|