Skip to content

Suspend the whole tokenizer and tree builder on </script> #231

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 8, 2016

Conversation

nox
Copy link
Contributor

@nox nox commented Nov 3, 2016

This change is Reviewable

@@ -404,19 +409,19 @@ impl<Sink: TokenSink> Tokenizer<Sink> {
self_closing: self.current_tag_self_closing,
attrs: replace(&mut self.current_tag_attrs, vec!()),
});
self.process_token(token);
;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Potato fingers. I wonder how the tests passed though...

@SimonSapin
Copy link
Member

SimonSapin commented Nov 3, 2016

@bors-servo r+


Reviewed 8 of 9 files at r1, 1 of 1 files at r2, 3 of 3 files at r3, 1 of 1 files at r4.
Review status: all files reviewed at latest revision, 1 unresolved discussion.


Comments from Reviewable

@bors-servo
Copy link
Contributor

📌 Commit 40580bb has been approved by SimonSapin

@nox
Copy link
Contributor Author

nox commented Nov 3, 2016

@bors-servo r-

I am dumb, you can't know which script halted the tokenizer as the code is currently.

@nox nox changed the title Second step for support of Document.write Suspend the whole tokenizer and tree builder on </script> Nov 4, 2016
@SimonSapin
Copy link
Member

@bors-servo r+


Reviewed 10 of 10 files at r5.
Review status: all files reviewed at latest revision, 1 unresolved discussion.


Comments from Reviewable

@bors-servo
Copy link
Contributor

📌 Commit 7a268f3 has been approved by SimonSapin

@bors-servo
Copy link
Contributor

⚡ Test exempted - status

@bors-servo bors-servo merged commit 7a268f3 into servo:master Nov 8, 2016
bors-servo pushed a commit that referenced this pull request Nov 8, 2016
Suspend the whole tokenizer and tree builder on </script>

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/html5ever/231)
<!-- Reviewable:end -->
@nox nox deleted the write branch November 8, 2016 09:03
@Ygg01
Copy link
Contributor

Ygg01 commented Nov 8, 2016

Does this closes #7 #19 ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants