Each Element and FormElement is unique in what it requires. Account for variables like:
text
name
value
Element
Element should be a fundamental element. All of its children will all have text and html attributes. Although it may be ultimately confusing, it may make sense to implement every possible fundamental HTML tag. Thus, even if we will implement other classes which use the tag, we will have a fundamental version here.
FormElement
FormElement should be any sort of <input> or similar tag. These will in general all possess a name and value attribute. Some may also have text and html attributes.
Each
Element
andFormElement
is unique in what it requires. Account for variables like:Element
Element
should be a fundamental element. All of its children will all havetext
andhtml
attributes. Although it may be ultimately confusing, it may make sense to implement every possible fundamental HTML tag. Thus, even if we will implement other classes which use the tag, we will have a fundamental version here.FormElement
FormElement
should be any sort of<input>
or similar tag. These will in general all possess aname
andvalue
attribute. Some may also havetext
andhtml
attributes.