Skip to content

Commit

Permalink
Wording
Browse files Browse the repository at this point in the history
  • Loading branch information
nettybun committed Sep 8, 2020
1 parent 299aad7 commit 36245cb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ Written to: /home/today/_/work/softdom/public/indexSSR.html
For an example of a full web application written in Sinuous/JSX/TS that uses SSR
see https://gitlab.com/nthm/stayknit, specifically [its ssr/ folder][2].

## Notes
## Implementation notes

SoftDOM uses `Object.seal()` to throw errors when your web app tries to write
properties that don't exist, i.e `el.innerText = 'Text!'` will throw (read
Expand All @@ -46,10 +46,10 @@ Lets consider supporting an unimplemented method: innerText. [MDN][3] says it's
aware of how the text is rendered by the browser. Now imagine trying to
implement innerText to pass [their example][4]. That would be very difficult.

You know the tradeoffs that work best for your use case. The easiest would be
aliasing `innerText = this.textContent`. The hardest is reading and implementing
the W3C spec. You can write something in between that works for you. Don't be
scared to hack at the code ✨✨
You know your tradeoffs best. Aliasing `innerText = this.textContent` might be
all you need. The W3C spec would explain how to write something more complex.

Don't be scared to hack at the code ✨✨

[1]: https://github.com/fgnass/domino/blob/master/lib/htmlelts.js#L342
[2]: https://gitlab.com/nthm/stayknit/tree/work/ssr
Expand Down

0 comments on commit 36245cb

Please sign in to comment.