You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
...
<script id="metamorph-0-start" type="text/x-placeholder"></script>
foo
<script id="metamorph-0-end" type="text/x-placeholder"></script>
bar
...
The innerHTML is not changed as it is injected after the script-tag.
And when we call prepend() on the Metamorph instance:
morph.prepend("bar");
We get this:
...
<script id="metamorph-0-start" type="text/x-placeholder"></script>
bar
foo
<script id="metamorph-0-end" type="text/x-placeholder"></script>
...
However, the innerHTML is here not modified even though it changed the content between the script-tags, giving incorrect data when innerHTML is requested.
Should there also be a before() and append() function? (I don't mean appendTo() here.)
The text was updated successfully, but these errors were encountered:
When having following code:
Which results in the following markup:
When we call
after()
on the Metamorph instance:We get this:
The
innerHTML
is not changed as it is injected after the script-tag.And when we call
prepend()
on the Metamorph instance:We get this:
However, the
innerHTML
is here not modified even though it changed the content between the script-tags, giving incorrect data wheninnerHTML
is requested.Should there also be a
before()
andappend()
function? (I don't meanappendTo()
here.)The text was updated successfully, but these errors were encountered: