Skip to content

Conversation

@remarkablemark
Copy link
Owner

Refactor HTML to DOM modules (server and client). The environment detection logic (browser versus node) now resides in the entry module index.js. This allows the client-side versus server-side parsing logic to stay within their respective modules.

Tasks:

  • Move the client/server environment detection logic to the entry file.
  • Rename lib/html-to-dom.js to lib/html-to-dom-server.js and move the client-side parsing logic to lib/html-to-dom-client.js. lib/html-to-dom-server.js will only contain the server-side logic.
  • Fix and update the tests.

@remarkablemark remarkablemark self-assigned this Aug 24, 2016
Move the client/server environment detection logic to the entry
file.

Rename `lib/html-to-dom.js` to `lib/html-to-dom-server.js` and
move the client-side parsing logic to `lib/html-to-dom-client.js`.
`lib/html-to-dom-server.js` will only contain the server-side
logic.

Fix and update the tests.
@remarkablemark remarkablemark merged commit 58e81cc into master Aug 24, 2016
@remarkablemark remarkablemark deleted the refactor-html-to-dom branch August 24, 2016 01:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants