Skip to content

Commit edf0dae

Browse files
committed
0.33
1 parent 8e9fb92 commit edf0dae

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/main/java/com/xenoamess/x8l/ContentNode.java

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,16 @@ public void addAttribute(String attributeString) {
4040
}
4141
}
4242

43+
public void removeAttribute(String attributeString) {
44+
int index = attributeString.indexOf("=");
45+
if (index == -1) {
46+
} else {
47+
attributeString = attributeString.substring(0, index);
48+
}
49+
this.attributes.remove(attributeString);
50+
this.attributesKeyList.remove(attributeString);
51+
}
52+
4353
@Override
4454
public void show() {
4555
super.show();

0 commit comments

Comments
 (0)