Commit graph

81 commits

Author SHA1 Message Date
Jez Higgins
2f88819306 Expand entity references in the DOM 2012-09-14 19:44:29 +01:00
Jez Higgins
d76e60cce5 Add this-> 2012-09-14 11:22:21 +01:00
Jez Higgins
2f49994b09 Deal properly with the [dtd] pseudo-entity
Some parsers report the [dtd] pseudo entity through the LexicalHandler.
Arabica was incorrectly trying to create an Entity Reference for it.
2012-09-14 11:12:50 +01:00
Jez Higgins
304ddc6124 Fix for gcc4.7 provided by oncaphillis@snafu.de 2012-09-07 19:50:16 +01:00
Jez Higgins
3b54b7482a Fixed includes for DOMException - all this time they'd been wrong :( 2011-11-26 09:19:56 +00:00
jez
deca6907e1 Massage ArabicaConfig.hpp so all macros are prefixed ARABICA_ 2011-11-25 23:26:39 +00:00
jez
e4fd3c8239 If node doesn't belong to this element, complain 2010-12-29 15:41:56 +00:00
jez
90156036c0 return oldChild not newChild when replacing with a docfragment 2010-12-29 00:11:20 +00:00
jez
6c749609c0 recalculate value if child nodes are fiddled with 2010-12-29 00:10:05 +00:00
jez
a71a89e918 calculate proper node value when it has entity ref children 2010-12-27 13:43:39 +00:00
jez
6dd167b363 factored out attribute node value 2010-12-27 13:35:40 +00:00
jez
d7b9375eba rejigged overrides 2010-12-27 13:06:18 +00:00
jez
16463bbd83 pop exception if trying to remove an item that doesn\'t exist. yay\! 2010-12-27 00:27:57 +00:00
jez
d45b5bbcb5 Check that inserted node isn't an ancestor of the new parent 2010-12-26 22:56:15 +00:00
jez
a8540e640a check ownerdocument of inserted node 2010-12-26 22:20:33 +00:00
jez
56a3f9397f Check attribute names in setAttribute 2010-12-24 22:44:43 +00:00
jez
92090f6377 Checked element/attribute/pi names are valid 2010-12-24 22:00:49 +00:00
jez
968671c82d Checked element/attribute/pi names are valid 2010-12-24 21:42:30 +00:00
jez
5d572fef10 Whitespace changes 2010-12-24 21:42:06 +00:00
jez
6999f61599 Whitespace changes 2010-12-24 21:41:45 +00:00
jez
59ec067f96 Removed old CVS Id tag 2010-12-24 21:40:58 +00:00
Jez Higgins
8a9115fd53 Pulled out a couple of helper functions. Reworked CDATA output so it properly outputs wacky CDATA sections with ]]> in them. 2010-12-23 22:51:44 +00:00
jez
c29604d553 set attributes readonly when its owner element is readonly 2010-12-19 23:22:17 +00:00
jez
bbc95fdbb2 If an internal entity declaration looks like markup, parse it as markup rather than just treating it as a bit of text 2010-12-17 10:19:37 +00:00
jez
7e9722ddc3 Corrected normalization - only adjacent text nodes should be combined 2010-12-17 10:18:14 +00:00
jez
dcbb59b2e8 Default setNodeValue is to do nothing. 2010-12-11 01:12:03 +00:00
jez
9643b42edd Can now safely add an attribute the element that already owns it 2010-12-11 01:11:22 +00:00
jez
a17944bd9f Correct DOMException CODE enum values 2010-12-11 01:10:21 +00:00
jez
bec9948659 Corrected exception specifier on DOMBadCast destructor 2010-12-10 09:29:10 +00:00
jez
f7146a5668 Improved DOM casting error messages 2010-12-10 09:24:34 +00:00
jez
ce69150111 Improved error reporting. Fixed a couple of test functions in dom_conf_test. Skip a couple of entityRef tests 2010-12-09 19:03:23 +00:00
Jez Higgins
ef878d91a2 Got conformance tests compiling and running on Linux 2010-12-09 14:04:13 +00:00
jez
33d08c77a1 DOM Level 1 Conformance fixes found with first pass of W3C conf tests 2010-12-09 11:35:54 +00:00
Jez Higgins
d28849dc48 Finally sorted out the attributes and their namespaces issues. hurrah 2010-10-03 16:08:54 +01:00
Jez Higgins
8f41a01b88 Fix for non-std::string classes 2010-08-20 21:32:22 +01:00
Jez Higgins
abaaaf4cc4 Generate a namespace prefix for unprefixed attributes in namespaces. It's a start, but needs to check for clashes. I also wonder if there are cases when I need to generate them for elements too. Hmmm 2010-07-14 22:36:05 +01:00
jez
7e8752fe30 Getting DOM operator<< to work with other strings 2010-07-14 09:08:46 +01:00
Jez Higgins
7f8d20b46f more warnings fixed 2010-01-10 18:47:09 +00:00
Jez Higgins
6c55f7f36c silenced unused param warnings 2010-01-09 22:34:13 +00:00
jez
5ec2316aa5 fixed segfault when created doctype before owner doc has been set 2010-01-06 21:52:49 +00:00
Jez Higgins
7e62969c6c Fixed double delete problem when removing and readding an attribute 2010-01-01 23:03:01 +00:00
Jez Higgins
9eeb67aa3e convert node type from enum to int to silence gcc warning about exceeding the maximum value of the enum 2009-12-14 22:39:15 +00:00
jez
80da48a661 Ash Berlin's patch for Element.setAttributeNodeNS 2009-12-06 21:39:46 +00:00
jez
719829f10a Ash Berlin's patch to get Text.splitText working properly 2009-12-06 21:34:46 +00:00
Ash Berlin
31c13685d1 Remove warnings:
* Unused variable
  * Unsigned value always >= 0
  * Parameter initialization order
  * Virtual destructors for virtual classes
2009-11-28 01:12:28 +00:00
jez
283c48de75 fix to bug identified by Ash Berlin in set/get/removeNamedItemNS 2009-11-25 10:23:27 +00:00
jez
2cb2cc8bbe NamedNodeMap tests and bugfix 2009-11-23 22:36:15 +00:00
jez
7e3caeb2d0 converted AxisEnumerator to uses Node_impl* internally 2009-05-19 09:24:19 +01:00
jez
25dc9795ab slipped TextCoalescer filter into the DOM builder, so that consecutive bits of text get applied to a single Text or CDATA node, rather than as a series of nodes. (A series of nodes is perfectly legal, it's just slightly unexpected. Even to me, and I work with DOMs a lot :) 2008-09-03 00:44:50 +01:00
jez
d173537cde sync with home 2008-09-03 00:39:39 +01:00