From 36245cb16da7ab997d26d9d617bca5320c2d708f Mon Sep 17 00:00:00 2001 From: Gen Hames Date: Tue, 8 Sep 2020 09:36:48 -0700 Subject: [PATCH] Wording --- readme.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/readme.md b/readme.md index 1161bba..a04dd8e 100644 --- a/readme.md +++ b/readme.md @@ -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 @@ -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