Implement throw-on-dynamic-markup-insertion-counter

This commit is contained in:
Connor Brewster 2017-12-02 18:35:39 -06:00 committed by Josh Matthews
parent 43526c80bb
commit 4593195b49
2 changed files with 26 additions and 6 deletions

View file

@ -1000,7 +1000,7 @@ fn create_element_for_token(
// Step 6.
if will_execute_script {
// Step 6.1.
// TODO: handle throw-on-dynamic-markup-insertion counter.
document.increment_throw_on_dynamic_markup_insertion_counter();
// Step 6.2
if is_execution_stack_empty() {
document.window().upcast::<GlobalScope>().perform_a_microtask_checkpoint();
@ -1025,9 +1025,9 @@ fn create_element_for_token(
// Step 9.
if will_execute_script {
// Steps 9.1 - 9.2.
ScriptThread::pop_current_element_queue()
ScriptThread::pop_current_element_queue();
// Step 9.3.
// TODO: handle throw-on-dynamic-markup-insertion counter.
document.decrement_throw_on_dynamic_markup_insertion_counter();
}
// TODO: Step 10.