Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor HTML to DOM modules and environment detection logic #5

Merged
merged 1 commit into from
Aug 24, 2016

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.

None yet

1 participant