Skip to content
This repository has been archived by the owner on Apr 4, 2019. It is now read-only.

Add temporary workaround for SimpleDOM #425

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

chancancode
Copy link
Member

Requires krisselden/morph-range#8

The current parseHTML implementation requires some DOM APIs not implemented in SimpleDOM. This commit adds a temporary workaround to support using SimpleDOM on the server.

In the future, we will move towards using insertAdjacentHTML and innerHTML= as the main APIs and remove the need of parseHTML altogether.

This commit also reverts a previous commit that introduced the setMorphHTML method, which does exactly what Morph#setHTML does.

(I added a test, but it's not currently running because we disabled all the node tests since #359... @stefanpenner ? Anyhow, this particular change is very easy to verify by 👀, so it's not critical to re-enable them just to merge this PR.)

@chancancode
Copy link
Member Author

@krisselden @wycats can you take a look? 👀

The current parseHTML implementation requires some DOM APIs not
implemented in SimpleDOM. This commit adds a temporary workaround
to support using SimpleDOM on the server.

In the future, we will move towards using `insertAdjacentHTML` and
`innerHTML=` as the main APIs and remove the need of `parseHTML`
altogether.

This commit also reverts a previous commit that introduced the
`setMorphHTML` method, which does exactly what `Morph#setHTML`
does.
@e00dan
Copy link

e00dan commented Aug 19, 2016

Hey, what's the status of this? :) @chancancode

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants