summaryrefslogtreecommitdiff
path: root/src/core/document.c
Commit message (Collapse)AuthorAgeFilesLines
* Strip and collapse whitespace when gathering html option values.Michael Drake2014-01-231-0/+17
|
* dom_document_get_element_by_id increments the ref counter of any returned ↵Michael Drake2013-08-231-0/+3
| | | | element.
* add context for default action functionVincent Sanders2013-02-191-5/+7
|
* Ensure we memoise all the strings used in the core event dispatchDaniel Silverstone2012-11-031-0/+98
|
* Move generation of id_name into document by default. Since 'id' is the most ↵Daniel Silverstone2012-11-021-2/+8
| | | | common name of the 'id' attribute
* DOMDocument::_dom_find_element_by_id: Only compare ids, if the element *has* oneDaniel Silverstone2012-08-061-5/+6
|
* DOMDocument: Actually free the empty memoised stringDaniel Silverstone2012-07-211-1/+2
|
* DOMDocument: Memoize the empty stringDaniel Silverstone2012-07-051-0/+10
|
* Promote ref/unref in dom_node to be inlines.Daniel Silverstone2012-03-281-2/+2
| | | | svn path=/trunk/libdom/; revision=13761
* Squash scan-build issuesDaniel Silverstone2012-03-251-2/+3
| | | | svn path=/trunk/libdom/; revision=13686
* Migrate quirks from html_document to documentDaniel Silverstone2012-03-241-0/+17
| | | | svn path=/trunk/libdom/; revision=13633
* Store 'class' string as dom_string instead of lwc_string.Michael Drake2012-03-241-5/+5
| | | | svn path=/trunk/libdom/; revision=13616
* Store 'class' string on document.Michael Drake2012-03-241-0/+7
| | | | svn path=/trunk/libdom/; revision=13604
* Documents and document types do not have text contentDaniel Silverstone2012-03-241-1/+20
| | | | svn path=/trunk/libdom/; revision=13602
* C89 for BeOS build.François Revel2012-03-241-4/+5
| | | | svn path=/trunk/libdom/; revision=13581
* Note that document attributes are always specifiedDaniel Silverstone2012-03-241-0/+2
| | | | svn path=/trunk/libdom/; revision=13579
* A bunch of panel beating:John Mark Bell2012-02-051-1/+1
| | | | | | | | * HTMLElement and HTMLDocument now have vtables * All HTML nodes require an HTMLDocument to create * Miscellaneous other cleanups svn path=/trunk/libdom/; revision=13424
* Merge branches/jmb/dom-alloc-purge back to trunkJohn Mark Bell2011-12-211-463/+159
| | | | svn path=/trunk/libdom/; revision=13316
* s/struct dom_string/dom_string/gJohn Mark Bell2011-04-071-25/+25
| | | | svn path=/trunk/libdom/; revision=12172
* Remove bootstrap infrastructure, and just make dom_implementation a stub.John Mark Bell2010-12-051-20/+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
* Merge branches/struggleyb/libdom-html to trunk.John Mark Bell2010-08-301-1/+4
| | | | | | 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-261-88/+54
| | | | | | failures. Most importantly, it actually compiles now. svn path=/trunk/dom/; revision=10717
* Merge the Events module (branches/struggleyb/libdom-events) back to trunk. :)Bo Yang2009-08-131-4/+17
| | | | svn path=/trunk/dom/; revision=9236
* Make the failed 5 testcases passed in DOMTS Core level2. Bo Yang2009-08-121-1/+1
| | | | svn path=/trunk/dom/; revision=9211
* Merge the branches/struggleyb/libdom-remain back to trunk.Bo Yang2009-08-111-276/+725
| | | | svn path=/trunk/dom/; revision=9191
* Modify NamedNodeMap, note that there is no vtable for this type because it ↵Bo Yang2009-03-231-4/+4
| | | | | | 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
* Fix the spelling initialize -> initialise.Bo Yang2009-03-201-1/+1
| | | | svn path=/trunk/dom/; revision=6809
* Convert DOM document interface to use vtable structure.Bo Yang2009-03-191-56/+51
| | | | svn path=/trunk/dom/; revision=6802
* Rationalise dom_string (some consideration is required as to what happens ↵John Mark Bell2009-03-031-94/+19
| | | | | | | | | 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 typoJohn Mark Bell2008-04-071-1/+1
| | | | svn path=/trunk/dom/; revision=4074
* Make the dom string class more useful.John Mark Bell2007-10-031-57/+127
| | | | | | | | 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-5/+39
| | | | | | | | | | | | | | | | | | 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
* Introduce global initialistaion/finalisation for DOM library. This should be ↵John Mark Bell2007-09-291-72/+15
| | | | | | | | | 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
* Implement dom_document_create_element_ns().John Mark Bell2007-09-271-13/+113
| | | | | | | | Implement dom_document_create_attribute_ns(). These need more sanity checking. svn path=/trunk/dom/; revision=3600
* Modify dom_node_initialise() API to permit specification of namespace URI ↵John Mark Bell2007-09-271-3/+3
| | | | | | | | and prefix. Fix up everything else to cope. svn path=/trunk/dom/; revision=3599
* Implement dom_document_get_implementation()John Mark Bell2007-09-221-14/+13
| | | | | | | Implement dom_document_get_elements_by_tag_name() Implement dom_document_get_elements_by_tag_name_ns() svn path=/trunk/dom/; revision=3572
* Begin implementation of DocumentType classJohn Mark Bell2007-09-191-41/+10
| | | | | | | | | | | | | | | 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
* Make Document nodes own themselves (removes need for special case for Documents)John Mark Bell2007-09-171-2/+4
| | | | | | | Fixup dom_node_destroy appropriately. Implement dom_node_{set,get}_user_data. svn path=/trunk/dom/; revision=3542
* Implement Document destructor.John Mark Bell2007-07-281-2/+77
| | | | | | Fix handling of nodes within a document (they no longer explicitly reference the document) svn path=/trunk/dom/; revision=3468
* Finalisation and destruction of nodesJohn Mark Bell2007-07-281-1/+0
| | | | svn path=/trunk/dom/; revision=3467
* Add Document constructorJohn Mark Bell2007-07-281-3/+104
| | | | svn path=/trunk/dom/; revision=3466
* Sort out somewhat messy object construction.John Mark Bell2007-07-281-15/+19
| | | | | | We now have explicit types for all classes (rather than using the parent class for those which inherit but add no extra data content). svn path=/trunk/dom/; revision=3465
* Implement type-specific node constructors and veneer the appropriate ↵John Mark Bell2007-07-261-45/+47
| | | | | | Document APIs onto them. svn path=/trunk/dom/; revision=3463
* Add ability to set a document's doctype after the document has been createdJohn Mark Bell2007-07-261-0/+30
| | | | svn path=/trunk/dom/; revision=3462
* Add omitted dom_document_create_comment APIJohn Mark Bell2007-07-221-0/+23
| | | | svn path=/trunk/dom/; revision=3459
* rename dom_document_get_element() to dom_document_get_document_element()James Shaw2007-07-211-1/+1
| | | | svn path=/trunk/dom/; revision=3453
* Make NamedNodeMap more genericJohn Mark Bell2007-07-121-5/+6
| | | | svn path=/trunk/dom/; revision=3404
* Add NamedNodeMap.John Mark Bell2007-07-101-1/+109
| | | | | | 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/+114
| | | | svn path=/trunk/dom/; revision=3394
* Purge all trace of the ballache that was dom_ctx.John Mark Bell2007-07-061-98/+479
| | | | | | Document the functions in document.c svn path=/trunk/dom/; revision=3385