- From: Mason Freed <notifications@github.com>
- Date: Thu, 05 Nov 2020 18:19:36 -0800
- To: whatwg/dom <dom@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 6 November 2020 02:19:49 UTC
> In general shared mutable global state is problematic and makes code harder to reason about. E.g., you can set it, then call a framework method which isn't prepared to deal with the consequences. (Not security consequences; just, it was written before DSD, and it doesn't know how to deal with some nodes getting swept into a shadow tree.) You can think of it similarly to how we try to avoid global variables in C++ that control the behavior of methods, and instead we pass arguments to methods. Yep, totally fair. Ok, I’ll make that change. How do you feel about using properties on `DOMParser` and `XMLHttpRequest`? -- You are receiving this because you are subscribed to this thread. Reply to this email directly or view it on GitHub: https://github.com/whatwg/dom/issues/912#issuecomment-722767242
Received on Friday, 6 November 2020 02:19:49 UTC