summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
* Include html element from dom.hDaniel Silverstone2012-03-241-0/+3
| | | | svn path=/trunk/libdom/; revision=13578
* Fix build on ARM.Michael Drake2012-03-231-1/+1
| | | | svn path=/trunk/libdom/; revision=13565
* Provide custom API to ease optimal binding to libcssJohn Mark Bell2012-02-111-0/+29
| | | | svn path=/trunk/libdom/; revision=13440
* Add constructor which auto-interns dataJohn Mark Bell2012-02-061-0/+2
| | | | svn path=/trunk/libdom/; revision=13427
* Make HTMLDocument use dynamic dispatch like everything else.John Mark Bell2012-02-051-39/+225
| | | | | | | | Fix variable misuse in HTMLDocument constructor. Overload Document.createElement and Document.createElementNS for HTMLDocuments Re-enable decision to create HTMLDocument instead of Document in DOMImplementation.createDocument svn path=/trunk/libdom/; revision=13425
* A bunch of panel beating:John Mark Bell2012-02-052-21/+92
| | | | | | | | * HTMLElement and HTMLDocument now have vtables * All HTML nodes require an HTMLDocument to create * Miscellaneous other cleanups svn path=/trunk/libdom/; revision=13424
* Excise more API bizarrenessJohn Mark Bell2012-02-051-6/+0
| | | | svn path=/trunk/libdom/; revision=13421
* Implement HTMLDocument constructor/destructorJohn Mark Bell2012-02-051-1/+1
| | | | svn path=/trunk/libdom/; revision=13420
* Remove parser unpleasantness from HTMLDocumentJohn Mark Bell2012-02-051-6/+1
| | | | svn path=/trunk/libdom/; revision=13419
* Fix comparison of interned and non-interned dom strings. Constify dom ↵Michael Drake2011-12-221-2/+2
| | | | | | string data accessers. svn path=/trunk/libdom/; revision=13327
* Move dom_string data accessing functions to public header.Michael Drake2011-12-221-0/+10
| | | | svn path=/trunk/libdom/; revision=13322
* Merge branches/jmb/dom-alloc-purge back to trunkJohn Mark Bell2011-12-218-48/+79
| | | | svn path=/trunk/libdom/; revision=13316
* s/struct dom_string/dom_string/gJohn Mark Bell2011-04-0728-433/+422
| | | | svn path=/trunk/libdom/; revision=12172
* Provide mechanism for binding/client to define the features a document ↵John Mark Bell2010-12-062-1/+12
| | | | | | | | | object should support. Utilise this to decide whether to create a raw Document or an HTMLDocument instance. Disable the above decision, as the HTMLDocument implementation is garbage svn path=/trunk/libdom/; revision=11025
* Simplify DOMImplementation API by replacing dom_strings with const char *John Mark Bell2010-12-061-6/+5
| | | | svn path=/trunk/libdom/; revision=11024
* Remove bootstrap infrastructure, and just make dom_implementation a stub.John Mark Bell2010-12-057-342/+9
| | | | | | We only support a single implementation, so all the registry and implementation list stuff is totally unnecesary and overcomplex svn path=/trunk/dom/; revision=11017
* Fix buildJohn Mark Bell2010-12-051-1/+1
| | | | svn path=/trunk/dom/; revision=11016
* Beginnings of some of HTMLElementDaniel Silverstone2010-12-051-11/+28
| | | | svn path=/trunk/dom/; revision=11009
* Merge branches/struggleyb/libdom-html to trunk.John Mark Bell2010-08-3060-24/+827
| | | | | | A few additional fixes to reduce the number of regressions to single figures. svn path=/trunk/dom/; revision=10724
* Sync with modified libwapcaplet API: 11 additional DOM Level1 testsuite ↵John Mark Bell2010-08-264-9/+7
| | | | | | failures. Most importantly, it actually compiles now. svn path=/trunk/dom/; revision=10717
* Add events module header into the dom.hBo Yang2009-08-141-0/+3
| | | | svn path=/trunk/dom/; revision=9281
* Merge the Events module (branches/struggleyb/libdom-events) back to trunk. :)Bo Yang2009-08-1317-1/+823
| | | | svn path=/trunk/dom/; revision=9236
* Merge the branches/struggleyb/libdom-remain back to trunk.Bo Yang2009-08-1114-84/+174
| | | | svn path=/trunk/dom/; revision=9191
* Some more typo.Bo Yang2009-05-081-3/+3
| | | | svn path=/trunk/dom/; revision=7436
* Modify some macro typo. Found by the testcases.Bo Yang2009-05-081-1/+1
| | | | svn path=/trunk/dom/; revision=7433
* Some more typo found by the testcases.Bo Yang2009-05-051-2/+2
| | | | svn path=/trunk/dom/; revision=7393
* Modify some typo, thanks to the partly-completed testcase to help to find ↵Bo Yang2009-05-051-1/+1
| | | | | | this little problem. svn path=/trunk/dom/; revision=7392
* Make dom_namednodemap and dom_nodelist more usable through macroes. Note, it ↵Bo Yang2009-04-292-8/+50
| | | | | | is the partly-completed testcase that find this problem. Our DOMTS is on its way. svn path=/trunk/dom/; revision=7365
* Add dom_document_fragment, dom_cdata_section, dom_entity_reference, ↵Bo Yang2009-04-295-0/+54
| | | | | | dom_processing_instruction to public DOM interface. svn path=/trunk/dom/; revision=7363
* Add typedefs for public DOM interfaces.Bo Yang2009-03-316-6/+11
| | | | svn path=/trunk/dom/; revision=7002
* Convert Text to use vtable structure. Now the whole libdom is compiled ↵Bo Yang2009-03-241-10/+54
| | | | | | successfully again. svn path=/trunk/dom/; revision=6833
* Convert DOMElement interface to use vtable structure.Bo Yang2009-03-201-52/+300
| | | | svn path=/trunk/dom/; revision=6808
* Convert DOMFragment to use vtable structure.Bo Yang2009-03-191-3/+3
| | | | svn path=/trunk/dom/; revision=6806
* Convert DocumentType to use vtable structure.Bo Yang2009-03-191-13/+84
| | | | svn path=/trunk/dom/; revision=6804
* Convert DOM document interface to use vtable structure.Bo Yang2009-03-192-65/+406
| | | | svn path=/trunk/dom/; revision=6802
* Convert the dom_characterdata to use vtable.Bo Yang2009-03-151-17/+114
| | | | svn path=/trunk/dom/; revision=6787
* Change the our dom to use vtable method. The first step: Bo Yang2009-03-122-87/+546
| | | | | | | convert the dom_node/dom_attr. And, this is my first commit. Great && Exciting! svn path=/trunk/dom/; revision=6780
* Make hubbub parser binding build trees correctly (credit: Bo Yang)John Mark Bell2009-03-051-0/+14
| | | | svn path=/trunk/dom/; revision=6711
* Rationalise dom_string (some consideration is required as to what happens ↵John Mark Bell2009-03-034-23/+5
| | | | | | | | | wrt interning -- lwc_strings should probably be used) Purge charset handling -- a) documents are always converted to utf-8 b) use parserutils for utf-8 handling Fix Hubbub binding to compile. svn path=/trunk/dom/; revision=6682
* Fix up bindings buildsystem to permit multiple bindings to be built -- quite ↵John Mark Bell2007-11-041-0/+20
| | | | | | | | | why this wasn't done in the first place is currently beyond me. Tidy up XML binding -- ensure all public API is prefixed dom_xml_ to avoid confusion, remove xml_alloc (it's pointless), and move xml_msg to <dom/functypes.h> (as dom_msg, as it's more useful there) Fix up testobject to compile once more svn path=/trunk/dom/; revision=3643
* Add, and implement, dom_string_insert() and dom_string_replace() APIJohn Mark Bell2007-11-031-0/+10
| | | | | | | | | | | | | Fix dom_string_substr() to have correct length limits when calling _dom_utf{8,16}_next() Fix dom_string_substr() to calculate correct length of output string when creating from ptr Implement dom_characterdata_get_length() Implement dom_characterdata_substring_data() Implement dom_characterdata_append_data() Implement dom_characterdata_insert_data() Implement dom_characterdata_delete_data() Implement dom_characterdata_replace_data() svn path=/trunk/dom/; revision=3641
* Make the dom string class more useful.John Mark Bell2007-10-031-4/+22
| | | | | | | | Purge all trace of dom_string_get_data() from outside the dom string implementation. Port affected code to new, more useful, APIs. This also fixes the interned node name strings mentioned in the previous commit. svn path=/trunk/dom/; revision=3621
* DOM Strings are now capable of containing either UTF-8 or UTF-16 encoded data.John Mark Bell2007-09-303-4/+18
| | | | | | | | | | | | | | | | | | The charset used for strings within a document is specified at document creation time. Whilst it is possible to mix charsets within a document, it's not recommended. Things that need fixing: + dom_string_get_data() doesn't return the charset. Better would be to permit the client to request a charset for the data to be returned in. + Interned node name strings will break if the document is UTF-16 (dom_document_create()). In fact, these could quite happily be globals, rather than allocating a set for each document. + Other usage of dom string constructors need checking for sanity + DOM Strings need to gain more utility APIs (such as getting the character length of a string, string concatenation etc). svn path=/trunk/dom/; revision=3614
* dom_initialise() and dom_finalise() are now completely public, rather than ↵John Mark Bell2007-09-292-10/+21
| | | | | | | | hidden away in a header only meant for inclusion by bindings. Client applications are responsible for initialisation and finalisation of the dom library. This must happen before/after (respectively) any call to a dom library or dom binding library function. The reason for this change is that, if multiple bindings are required, then the dom library should still only be initialised/finalised once. Only the client can enforce this sensibly. svn path=/trunk/dom/; revision=3606
* Introduce global initialistaion/finalisation for DOM library. This should be ↵John Mark Bell2007-09-291-0/+10
| | | | | | | | | used to initialise any parts of the library before they are used. Mostly, this will comprise of static initialisers. Finalisation cleans up afterwards. This API is only exposed to language-specific binding libraries -- they should expose their own global initialisation/finalisation routines which call the core libdom ones. Introduce new utility code for namespace and qname processing. Port dom_document_create_element_ns() and dom_document_create_attribute_ns() to this new code. Make libdom-libxml's initialiser initialise libdom itself first of all. svn path=/trunk/dom/; revision=3604
* Begin implementation of DocumentType classJohn Mark Bell2007-09-191-3/+9
| | | | | | | | | | | | | | | Remove dom_document_set_doctype() -- dom_node_insert_before() (and thus _append_child()) can be used to achieve the same effect. DocumentType node is now a child of the Document node (as it should have been) rather than a hidden field. Make dom_node_destroy() aware of DocumentType nodes potentially having no owner. Make dom_node_finalise() aware of it, too. Make dom_node_get_owner_document() return NULL for Document nodes, as per the spec. Fix bug in dom_node_insert_before() -- previously it failed to catch attempts to insert a second root element. Make dom_node_insert_before() handle DocumentType nodes appropriately. Implement XML binding's dom_implementation_create_document_type() function. Fix XML binding's dom_implementation_create_document() implementation to cope with changed API relating to doctype insertion. Fix up XML parser wrapper to cater for new doctype insertion mechanism. Also sprinkle some NULL about for paranoia purposes. svn path=/trunk/dom/; revision=3551
* Rename dom_named_node_map to dom_namednodemap to be consistent with the rest ↵James Shaw2007-08-081-2/+2
| | | | | | of the code svn path=/trunk/dom/; revision=3489
* Fix structure name dom_nodelistJames Shaw2007-08-031-2/+2
| | | | svn path=/trunk/dom/; revision=3474
* Comment fixesJohn Mark Bell2007-07-291-3/+3
| | | | svn path=/trunk/dom/; revision=3470
* Add Document constructorJohn Mark Bell2007-07-281-0/+4
| | | | svn path=/trunk/dom/; revision=3466