From edf0dae3cb33ffef55d0b367df6108a8ba673545 Mon Sep 17 00:00:00 2001 From: XenoAmess Date: Sun, 16 Dec 2018 18:17:44 +0800 Subject: [PATCH] 0.33 --- src/main/java/com/xenoamess/x8l/ContentNode.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/main/java/com/xenoamess/x8l/ContentNode.java b/src/main/java/com/xenoamess/x8l/ContentNode.java index f242766..4799398 100644 --- a/src/main/java/com/xenoamess/x8l/ContentNode.java +++ b/src/main/java/com/xenoamess/x8l/ContentNode.java @@ -40,6 +40,16 @@ public void addAttribute(String attributeString) { } } + public void removeAttribute(String attributeString) { + int index = attributeString.indexOf("="); + if (index == -1) { + } else { + attributeString = attributeString.substring(0, index); + } + this.attributes.remove(attributeString); + this.attributesKeyList.remove(attributeString); + } + @Override public void show() { super.show();