Commit graph

101 commits

Author SHA1 Message Date
Jez Higgins
191bb651de Merge branch 'master' of https://github.com/jezhiggins/arabica 2015-12-11 15:42:42 +00:00
Jez Higgins
13f23f7e90 Removed events 2015-12-09 23:03:49 +00:00
Jez Higgins
aa21fa7aa0 remove extraneous brackets 2015-03-25 17:31:58 +00:00
Stefan Radomski
71e0fb8621 Replaced uint64_t by __int64 for better support on windows 2013-08-17 18:21:31 +02:00
Jez Higgins
959a32ef90 Moved the event implementation into the SimpleDOM namespace. 2013-02-09 14:37:12 +00:00
Jez Higgins
6505acfcda Events compile cleanly when no default_string_adaptor defined 2013-01-23 10:50:34 +00:00
Jez Higgins
3ab7bdf2a5 OK, do that properly 2013-01-20 19:09:25 +00:00
Jez Higgins
48287b4adc Accept const char* to initMutationEvent 2013-01-20 18:42:45 +00:00
Jez Higgins
fae0ecf960 Merge pull request #1 from sradomski/master
DOM Level2 Events
2013-01-20 10:30:44 -08:00
Stefan Radomski
fb1ac6da38 Reverted last commit 2013-01-13 18:57:22 +01:00
Stefan Radomski
96f2fb050a MSVC10 does not know operator+ for string and const char* 2013-01-13 17:49:54 +01:00
Stefan Radomski
f46a265432 Fixed issue with gcc 2013-01-10 23:06:40 +01:00
Stefan Radomski
dc1c1c0225 Dispatch DOMCharacterDataModified as well 2013-01-10 22:18:45 +01:00
Stefan Radomski
3fbde80063 Added operator< for nodes to function as STL keys 2013-01-07 14:55:13 +01:00
Stefan Radomski
d04316460c Fixed memory leak
- initialize refCount
- return true for hasFeature Events and MutationEvents
2013-01-07 03:02:04 +01:00
Stefan Radomski
0732013c6e Some bug-fixes
- Count references
- Provide Node constructor from EventTarget
2013-01-06 22:56:53 +01:00
Jez Higgins
0333a2cc0d Fallback to std::set because I can't work out how to use boost::unordered_set with silly_string 2013-01-05 23:42:06 +00:00
Jez Higgins
2a9d8ca748 Use boost::unordered_set for the String pool rather than my rather rubbish std::list. Much quicker. Patch provided by Gunther Laure 2013-01-05 21:55:09 +00:00
Stefan Radomski
2e486cfd96 More work on DOM Level2 events
- dispatchEvent follows standard now
- actually dsipatch events when modifying the dom
2013-01-01 23:35:42 +01:00
Stefan Radomski
0619f2deb0 Started DOM Level2 Events 2012-12-30 01:10:31 +01:00
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