summaryrefslogtreecommitdiff
path: root/src/core/document.h
Commit message (Collapse)AuthorAgeFilesLines
* Modify NamedNodeMap, note that there is no vtable for this type because it ↵Bo Yang2009-03-231-2/+2
| | | | | | is not in the DOM inherit hierarchy. And the internal API used between different DOM parts should use struct dom_node_internal instead of struct dom_node. svn path=/trunk/dom/; revision=6821
* Convert DOM document interface to use vtable structure.Bo Yang2009-03-191-1/+140
| | | | svn path=/trunk/dom/; revision=6802
* Rationalise dom_string (some consideration is required as to what happens ↵John Mark Bell2009-03-031-6/+0
| | | | | | | | | 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
* Make the dom string class more useful.John Mark Bell2007-10-031-0/+5
| | | | | | | | 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-301-1/+4
| | | | | | | | | | | | | | | | | | 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
* Implement Document destructor.John Mark Bell2007-07-281-0/+3
| | | | | | Fix handling of nodes within a document (they no longer explicitly reference the document) svn path=/trunk/dom/; revision=3468
* Implement type-specific node constructors and veneer the appropriate ↵John Mark Bell2007-07-261-2/+2
| | | | | | Document APIs onto them. svn path=/trunk/dom/; revision=3463
* Make NamedNodeMap more genericJohn Mark Bell2007-07-121-2/+2
| | | | svn path=/trunk/dom/; revision=3404
* Add NamedNodeMap.John Mark Bell2007-07-101-1/+11
| | | | | | Minor fix for NodeList unref function; ensure it unrefs the owner document after it has finished using it. svn path=/trunk/dom/; revision=3395
* Add NodeList and string comparison APIJohn Mark Bell2007-07-101-0/+16
| | | | svn path=/trunk/dom/; revision=3394
* Purge all trace of the ballache that was dom_ctx.John Mark Bell2007-07-061-3/+3
| | | | | | Document the functions in document.c svn path=/trunk/dom/; revision=3385
* Import DOM library.John Mark Bell2007-07-061-0/+19
This is mainly stub functions atm (and is missing a number of key interfaces). svn path=/trunk/dom/; revision=3384