summaryrefslogtreecommitdiff
path: root/src/html/html_document.c
Commit message (Collapse)AuthorAgeFilesLines
* Add missing tags according with WPT testHEADmasterPierre Tachoire2024-02-211-0/+27
| | | | | | | According with https://wpt.live/dom/nodes/Node-cloneNode.html test, libdom missed some hmtl tags. This commit adds tt, acronym, big, bgsound, marquee, noframes, spacer, strike and nobr tags
* Constify vtables.Michael Drake2021-02-021-2/+2
|
* html_document: Tag names of '' are invalidDaniel Silverstone2020-10-021-0/+4
| | | | Signed-off-by: Daniel Silverstone <dsilvers@digital-scurf.org>
* Add HTMLCanvasElementVincent Sanders2020-04-231-1/+5
|
* Fix libdom departures from "always return a ref" in public API.Michael Drake2019-02-161-1/+0
| | | | | | | | | | | | | | | | | | | The DOM test code expects nodes returned by libdom APIs to always be reffed. So this change refs them. The remaining leaks detected by address sanitiser in the dom test suite are a problem with the DOM test generator: * For test_level1_html_HTMLSelectElement08, the problem is that in the while loop, it doesn't unref `voption` at the end of the loop, in the test code. * For test_level1_html_HTMLTableElement07, the problem is the while loop doesn't unref `vrow` at the end of the loop in the test code. * For test_level1_html_HTMLTableElement09, it's the same for variable, `vbodies`.
* HTMLDocument: Squash leaks of document.documentElement.Michael Drake2018-08-031-4/+12
|
* HTMLDocument.body: Squash leak of node list.Michael Drake2018-08-031-0/+1
|
* Add CENTER to list of HTML elements.Michael Drake2016-02-041-0/+3
|
* Add full list of HTML5 elements to enum.Michael Drake2016-02-011-201/+305
| | | | | There is a TODO in the code, indicating the set of unimplemented HTMLElement specialisations. For now they fall back to HTMLElement.
* Store HTMLElement tag types as enum on the html elements.Michael Drake2016-01-281-7/+4
|
* Simplified consistant interface to HTMLElement creation.Michael Drake2016-01-281-73/+70
| | | | Also fixes STYLE element not getting the correct namespace or prefix.
* Fix: Pass tag_name through to HTMLQuoteElement initialiser.Michael Drake2016-01-281-1/+2
| | | | | It needs to be given the tag_name, because it could have been created by a Q or BLOCKQUOTE element.
* Fix longstanding failure to handle HTMLDirectoryElement specialisation.Michael Drake2016-01-271-7/+4
| | | | | We were looking for DIRECTORY tags, but we should have been looking for DIR elements.
* Optimise HTMLElement specialisation slightly.Michael Drake2016-01-271-189/+222
| | | | | | | Gets the byte length of the tag names string, and splits the comparison ladder into ladders for different string lengths. This reduces the amount of dom_string_isequal() calls we need to do.
* Optimise element specialisation: use non-caseless comparison in ladder.Michael Drake2016-01-271-63/+63
| | | | | | | We know for sure both things are upper case, so using the caseless version is needlessly slow, since it will need to lowercase both (if lowercase version's don't already exist) and compare the lower case versions.
* Remove default from HTML element specialisation switch.Michael Drake2016-01-271-1/+0
| | | | | | Now that everything is handled we can remove the default, and it should be obvious in future if something is added to the list of elements but not properly handled.
* Add missing detection of HTMLBaseElement specialisation.Michael Drake2016-01-271-0/+8
|
* Add missing detection of HTMLMetaElement specialisation.Michael Drake2016-01-271-0/+7
|
* Add missing detection of HTMLDivElement specialisation.Michael Drake2016-01-271-0/+8
|
* Add missing specialisation of BLOCKQUOTE.Michael Drake2016-01-271-0/+4
| | | | Both Q and BLOCKQUOTE share the HTMLQuoteElement specialisation.
* Enable table row HTML element specialisation.Michael Drake2016-01-271-0/+4
| | | | The code for it was always there, but it was never reached.
* Split detection of HTML TAG type out into helper.Michael Drake2016-01-271-138/+325
| | | | | | | | | This moves the massive dom_string comparison ladder out into a separate function, and switches on the result. Using a switch here has highlighted multiple issues: - Various html element specialisations were missed out. - Both TD elements were in the ladder twice.
* Split out tag names from general string table and enum.Michael Drake2016-01-271-89/+197
| | | | | Previously these were mixed in the the document's general memoised strings. This also gives us an enum by which HTML elements can be identified.
* Ensure HTMLDocument uses Document's Node vtable so that .textContent is correctDaniel Silverstone2015-11-221-1/+1
|
* Make HTMLDList IDL to c name mapping consistantVincent Sanders2015-10-231-2/+2
|
* Make HTMLOList IDL to c name mapping consistantVincent Sanders2015-10-231-2/+2
|
* Fix DoxygenDaniel Silverstone2014-11-151-1/+1
|
* Fix unref issue with html collection in applets callback. Coverity #1227072Daniel Silverstone2014-11-151-3/+4
|
* Fix type nonsense.John-Mark Bell2014-07-181-4/+4
|
* This tag gave me a headache for a day or two :P. The problem is that the ↵Rupinder Singh Khokhar2014-07-181-0/+4
| | | | parser isnt handling the isindex element properly. I have left this tag incomplete right now. Will look at it later on.
* HTMLCollectionRupinder Singh Khokhar2014-07-181-0/+1
|
* HTMLDocument Element incomplete & test generator minor fixRupinder Singh Khokhar2014-07-181-29/+199
|
* IFrame Elementrsk19942014-06-111-0/+4
|
* Frame Elementrsk19942014-06-111-0/+4
|
* FrameSet Elementrsk19942014-06-111-0/+4
|
* Style Elementrsk19942014-06-111-0/+4
|
* tableSectionElement Rev.2 && tableCellElement Rev.4 && tableElement Rev.1 && ↵rsk19942014-06-111-1/+9
| | | | tableRowElement Rev.1 && DOMTSHandler(Test Suite) Revised and implemented inefficient ways to produce correct .c's && other minor bg fixes in HTMLCollection... Tests expecting 2nd attribute of dom_html_collection_get_length to be of type int32_t aren't enabled yet. Will be done in a later commit.
* TableSection Element Rev.1rsk19942014-06-111-0/+6
|
* TableCol Elementrsk19942014-06-111-0/+6
|
* TableCell Element & possible bug fix on TableCaption ELementrsk19942014-06-111-0/+6
|
* TableCaption Elementrsk19942014-06-111-0/+4
|
* [Map Element Rev.2(fix)] & [Script Element add]rsk19942014-06-111-0/+12
|
* Applet Elementrsk19942014-06-111-0/+4
|
* Param Elementrsk19942014-06-111-0/+4
|
* Object <object> Element.rsk19942014-06-111-0/+4
|
* Typecasting POC to correct DOMTSHandler. A minor dupliction fixed in Anchor ↵rsk19942014-06-111-0/+4
| | | | Element. Image <img> Element
* Including Level2 tests & the Basefont Element , also a minor change in ↵rsk19942014-06-111-0/+4
| | | | level2 basefontElement test
* Anchor <a> elementrsk19942014-06-111-0/+4
|
* Mod Elementrsk19942014-06-111-0/+5
|
* Font Elementrsk19942014-06-111-0/+4
|