aboutsummaryrefslogtreecommitdiff
path: root/src/main/model/html
diff options
context:
space:
mode:
Diffstat (limited to 'src/main/model/html')
-rw-r--r--src/main/model/html/ElementNode.java3
-rw-r--r--src/main/model/html/TextNode.java3
2 files changed, 6 insertions, 0 deletions
diff --git a/src/main/model/html/ElementNode.java b/src/main/model/html/ElementNode.java
index 98995d0..16438f9 100644
--- a/src/main/model/html/ElementNode.java
+++ b/src/main/model/html/ElementNode.java
@@ -6,6 +6,9 @@ import org.javatuples.Pair;
import java.util.ArrayList;
import java.util.Optional;
+/**
+ * This ElementNode class represents an HTML tag and nested tags.
+ */
public class ElementNode implements Node {
private String tag;
private ArrayList<Pair<String,String>> attributes;
diff --git a/src/main/model/html/TextNode.java b/src/main/model/html/TextNode.java
index cf0078b..f6d3ce1 100644
--- a/src/main/model/html/TextNode.java
+++ b/src/main/model/html/TextNode.java
@@ -2,6 +2,9 @@ package model.html;
import model.util.Node;
+/**
+ * This TextNode class represents raw text, with no nested tags.
+ */
public class TextNode implements Node {
private String text = "";