From 5e9d0ce95ac9020bc270fe69661ae121ac333ae2 Mon Sep 17 00:00:00 2001 From: Patrice Levesque Date: Wed, 17 Feb 2016 10:56:05 -0500 Subject: [PATCH] =?UTF-8?q?Fix=20warning:=20=E2=80=98-textValue=E2=80=99?= =?UTF-8?q?=20not=20found=20in=20protocol(s)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Confusingly, labelNode is a DOMElement, not a DOMNode, so textValue cannot apply here; textContent which would be an appropriate replacement does not exist AFAIK in this DOM Library. So we manually get the text node via firstChild then get its text value via nodeValue. --- SoObjects/Mailer/SOGoMailAccounts.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoObjects/Mailer/SOGoMailAccounts.m b/SoObjects/Mailer/SOGoMailAccounts.m index 4411a5be3..4227e675e 100644 --- a/SoObjects/Mailer/SOGoMailAccounts.m +++ b/SoObjects/Mailer/SOGoMailAccounts.m @@ -234,7 +234,7 @@ labelNode = [labelNodes objectAtIndex: count]; label = [labelNode attribute: @"id"]; - name = [labelNode textValue]; + name = [[labelNode firstChild] nodeValue]; color = [labelNode attribute: @"color"]; [values addObject: name];