html-object icon indicating copy to clipboard operation
html-object copied to clipboard

Text element cannot contain childs

Open velosipedist opened this issue 9 years ago • 2 comments

After using appendChild(), Text element rendering attempt raises error, because $this->value is not string.

velosipedist avatar Jul 14 '14 17:07 velosipedist

Well that makes sense no, how would you have a child to a text node ?

Anahkiasen avatar Jul 14 '14 18:07 Anahkiasen

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.

velosipedist avatar Jul 17 '14 08:07 velosipedist