summaryrefslogtreecommitdiff
path: root/src/core/element.c
Commit message (Collapse)AuthorAgeFilesLines
* Merge branches/struggleyb/libdom-html to trunk.John Mark Bell2010-08-301-4/+51
| | | | | | 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-44/+21
| | | | | | failures. Most importantly, it actually compiles now. svn path=/trunk/dom/; revision=10717
* Split the _dom_element_destroy into two functions.Bo Yang2009-08-171-15/+26
| | | | svn path=/trunk/dom/; revision=9330
* Remove an unused parameter 'result'.Bo Yang2009-08-171-16/+9
| | | | svn path=/trunk/dom/; revision=9327
* Fix up some ref/unref error produced from _dispatch_ usage.Bo Yang2009-08-141-15/+31
| | | | | | Now, the trunk/dom test result are consistent with Core. svn path=/trunk/dom/; revision=9279
* Merge the Events module (branches/struggleyb/libdom-events) back to trunk. :)Bo Yang2009-08-131-20/+202
| | | | svn path=/trunk/dom/; revision=9236
* Make the failed 5 testcases passed in DOMTS Core level2. Bo Yang2009-08-121-0/+3
| | | | svn path=/trunk/dom/; revision=9211
* Merge the branches/struggleyb/libdom-remain back to trunk.Bo Yang2009-08-111-600/+1431
| | | | svn path=/trunk/dom/; revision=9191
* Modify NamedNodeMap, note that there is no vtable for this type because it ↵Bo Yang2009-03-231-6/+8
| | | | | | 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-3/+3
| | | | svn path=/trunk/dom/; revision=6809
* Convert DOMElement interface to use vtable structure.Bo Yang2009-03-201-69/+128
| | | | svn path=/trunk/dom/; revision=6808
* Make the dom string class more useful.John Mark Bell2007-10-031-1/+1
| | | | | | | | 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
* Implement dom_element_get_attribute_ns()John Mark Bell2007-09-291-29/+259
| | | | | | | | | | Implement dom_element_set_attribute_ns() Implement dom_element_remove_attribute_ns() Implement dom_element_get_attribute_node_ns() Implement dom_element_set_attribute_node_ns() Implement dom_element_has_attribute_ns() svn path=/trunk/dom/; revision=3608
* Modify dom_node_initialise() API to permit specification of namespace URI ↵John Mark Bell2007-09-271-7/+11
| | | | | | | | and prefix. Fix up everything else to cope. svn path=/trunk/dom/; revision=3599
* Begin to cater for XML namespaces.John Mark Bell2007-09-261-35/+3
| | | | | | | | | | | The localname member of Node has been removed. The name member already caters for this. Fix NodeList to cope with this and add some pointer vs NULL comparisons for sanity. Replace implementation of dom_element_get_tag_name() with a simple call to dom_node_get_node_name(), which is where the gory details lie. Add the QName building stuff to dom_node_get_node_name() (as per previous implementation of dom_element_get_tag_name()). Implement dom_node_set_prefix(). Ensure dom_node_get_local_name() returns NULL for nodes created by non-namespace-aware methods (nodes must also be Elements or Attributes) svn path=/trunk/dom/; revision=3596
* Add library-internal accessor to the head of an Element's attribute list ↵John Mark Bell2007-09-251-0/+11
| | | | | | | | | | | | | | (dom_element_get_first_attribute()) Implement dom_namednodemap_get_length() Implement dom_namednodemap_get_named_item() Implement dom_namednodemap_set_named_item() Implement dom_namednodemap_remove_named_item() Implement dom_namednodemap_item() All dom_namednodemap_*() still require support for maps of Entity and Notation nodes to be added (this requires DocumentType to gain support for these nodes). svn path=/trunk/dom/; revision=3591
* Move attributes field to struct dom_element as it doesn't apply to other ↵John Mark Bell2007-09-241-14/+54
| | | | | | node types. svn path=/trunk/dom/; revision=3590
* Fix dom_element_set_attribute() to use dom_attr_set_value() to replace the ↵John Mark Bell2007-09-231-5/+4
| | | | | | value of an existing attribute -- attribute values are stored as a tree of child nodes, not as a string attached to the nodeValue pointer. svn path=/trunk/dom/; revision=3580
* Note the need for handling of defaulted attributes in ↵John Mark Bell2007-09-221-0/+4
| | | | | | dom_element_remove_attribute{_node} svn path=/trunk/dom/; revision=3578
* Implement dom_element_get_attribute()John Mark Bell2007-09-221-36/+154
| | | | | | | | | | | | | Implement dom_element_set_attribute() Implement dom_element_remove_attribute() Implement dom_element_get_attribute_node() Make dom_element_set_attribute_node() ensure that the element is writable Implement dom_element_remove_attribute_node() Implement dom_element_get_elements_by_tag_name() Implement dom_element_get_elements_by_tag_name_ns() Implement dom_element_has_attribute() svn path=/trunk/dom/; revision=3577
* Implement dom_element_get_tag_name()John Mark Bell2007-09-181-8/+105
| | | | | | Implement dom_element_set_attribute_node() [still has some outstanding sanity checking] svn path=/trunk/dom/; revision=3549
* Finalisation and destruction of nodesJohn Mark Bell2007-07-281-0/+69
| | | | svn path=/trunk/dom/; revision=3467
* Implement type-specific node constructors and veneer the appropriate ↵John Mark Bell2007-07-261-0/+45
| | | | | | Document APIs onto them. svn path=/trunk/dom/; revision=3463
* Fix typoJohn Mark Bell2007-07-161-1/+1
| | | | svn path=/trunk/dom/; revision=3425
* Add Element.John Mark Bell2007-07-111-0/+513
Fix Attr's get_schema_type_info to have the right name. svn path=/trunk/dom/; revision=3400