mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-20 19:05:25 +00:00
Fix warning: ‘-textValue’ not found in protocol(s)
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.
This commit is contained in:
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user