Skip to content

Commit

Permalink
fixing wrong node property being used for the attribute name
Browse files Browse the repository at this point in the history
  • Loading branch information
ouchadam committed Apr 4, 2019
1 parent 63ce365 commit 72e8279
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ class ThemrPlugin : Plugin<Project> {
for (itemIndex in 0 until itemNodes.length) {
val itemNode = itemNodes.item(itemIndex)
val itemName = itemNode.attributes.getNamedItem("name")
items.add(Item(itemName.nodeName, itemNode.textContent))
items.add(Item(itemName.nodeValue, itemNode.textContent))
}
items
} ?: emptyList<Item>()
Expand Down

0 comments on commit 72e8279

Please sign in to comment.