Test document.write() during readystatechange to interactive #28799
domenic added a commit to whatwg/html that referenced this issue
May 4, 2021
* Explicitly call out to "update the current document readiness" when we want the side effects to happen. * Do not fire readystatechange if the value does not actually change. * Update the insertion point before firing readystatechange. * Make parser-less documents not be a special case, because most of them end up calling "stop parsing" before any script runs anyway. * Move everything related to current document readiness into the "Reporting document loading status" section. Most of these are not observable, because script cannot run during the times when these values are changing. The exception is that we now update the insertion point before firing readystatechange, whereas the previous not-very-precise phrasing seemed to imply that you'd update the insertion point afterward. The new order matches implementations, as seen from the test at web-platform-tests/wpt#28799.
Add this suggestion to a batch that can be applied as a single commit. This suggestion is invalid because no changes were made to the code. Suggestions cannot be applied while the pull request is closed. Suggestions cannot be applied while viewing a subset of changes. Only one suggestion per line can be applied in a batch. Add this suggestion to a batch that can be applied as a single commit. Applying suggestions on deleted lines is not supported. You must change the existing code in this line in order to create a valid suggestion. Outdated suggestions cannot be applied. This suggestion has been applied or marked resolved. Suggestions cannot be applied from pending reviews. Suggestions cannot be applied on multi-line comments.