Log

util/stanza.lua @ 9288:1330b5290a10

description author age
util.stanza + tests: Bail out of loop if we are iterating too far, fixes #981 Matthew Wild Sun, 19 Aug 2018 21:56:33 +0100
Merge 0.10->trunk Kim Alvefur Sun, 08 Jul 2018 19:12:17 +0200
util.stanza: Add method for removing all children with a specific name, xmlns Kim Alvefur Sun, 08 Jul 2018 16:48:59 +0200
util.stanza: Remove redundant check from :text now done in :add_direct_child Kim Alvefur Fri, 08 Jun 2018 17:44:44 +0200
util.stanza: Verify that other objects added as children are valid strings Kim Alvefur Fri, 08 Jun 2018 17:06:21 +0200
util.stanza: Verify that child tags added are really stanzas (closes #1165) Kim Alvefur Fri, 08 Jun 2018 17:04:47 +0200
util.stanza: Add :text_tag(), a shortcut for adding nodes with text Kim Alvefur Wed, 21 Mar 2018 23:20:26 +0100
util.stanza: Allow :text(nil) and :text("") as harmless nops Matthew Wild Wed, 21 Mar 2018 22:04:20 +0000
util.stanza: Switch from asserts to if's, improve performance, errors and tests Matthew Wild Sun, 18 Mar 2018 11:32:00 +0000
util.stanza: Add stricter validation for data passed to stanza builder API Matthew Wild Fri, 16 Mar 2018 14:51:24 +0000
vairious: Add annotation when an empty environment is set [luacheck] Kim Alvefur Wed, 28 Feb 2018 20:06:26 +0100
util.stanza: Change __type to __name as this is used by Lua 5.3 in some error reporting functions Kim Alvefur Fri, 16 Feb 2018 08:16:38 +0100
util: Various minor changes to please [luacheck] Kim Alvefur Fri, 10 Nov 2017 05:42:32 +0100
Merge 0.10->trunk Kim Alvefur Fri, 02 Dec 2016 11:13:05 +0100
util.stanza: Add an is_stanza() function to check if an object is a stanza Kim Alvefur Mon, 28 Nov 2016 07:30:21 +0100
Merge 0.10->trunk Matthew Wild Wed, 09 Mar 2016 13:19:38 +0000
util.stanza: Some code cleanup [luacheck] Matthew Wild Wed, 09 Mar 2016 12:37:56 +0000
util.stanza, util.xml, util.xmppstream: Add support for tracking defined namespaces and their prefix (stanza.namespaces), knowing/preserving prefix names is required for some applications (thanks daurnimator) Matthew Wild Tue, 08 Dec 2015 23:15:42 +0000
util.stanza: Export xml_escape (missed during removal of module() calls) Kim Alvefur Thu, 03 Sep 2015 23:39:00 +0200
util.*: Remove use of module() function, make all module functions local and return them in a table at the end Kim Alvefur Sat, 21 Feb 2015 10:36:37 +0100
Merge 0.9->0.10 Kim Alvefur Sun, 26 Oct 2014 20:57:06 +0100
Backout changeset 6e67c73f730c: not a major fix and it breaks interop with at least Isode M-Link, and possibly standards, while it's not clear it actually fixes the original problem either. 0.9.7 Matthew Wild Fri, 24 Oct 2014 23:20:06 +0100
Merge 0.9->0.10 Waqas Hussain Wed, 08 Oct 2014 18:42:33 -0400
util.stanza: Escape newlines and tabs (\r\n\t) when serializing stanzas. \r\n transforms into \n otherwise, and \r\n\t in attributes transforms into spaces. Waqas Hussain Wed, 08 Oct 2014 15:56:11 -0400
Remove all trailing whitespace Florian Zeitz Fri, 09 Aug 2013 17:48:21 +0200
util.stanza: Use correct index when replacing the tag in .tags (thanks daurnimator) Matthew Wild Fri, 05 Apr 2013 19:59:48 +0100
util.stanza: Add stanza:find(), a light weight XPath-like method Kim Alvefur Thu, 04 Apr 2013 20:05:35 +0200
util.stanza: :maptags(): Fixes to make loop more robust on item removal Matthew Wild Wed, 03 Apr 2013 13:38:27 +0100
util.stanza: Use ipairs instead of childtags (behavior changed in 92c86e11fd44) Kim Alvefur Tue, 21 Aug 2012 15:33:07 +0200
util.stanza: Make stanza:childtags() behave like :get_child() Kim Alvefur Thu, 05 Jul 2012 17:58:47 +0200