Inline SVG scritping test

Here is a simple inline SVG example that gets modified by a script. The append() function doesn't seem to work, but the appendtoclone() function does (rather inefficient though). What's wrong with the simpler append()?