html-object
html-object copied to clipboard
Text element cannot contain childs
After using appendChild()
, Text element rendering attempt raises error, because $this->value
is not string.
Well that makes sense no, how would you have a child to a text node ?
Yep, it have no sense. But no exception thrown after call appendChild()
made me think that it is possible. There should be more accurate inheritance from base classes, without having possibility to call non-supported functionality.