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
Implement encoding determination for external scripts. #9185
Comments
I attempted to do something here, but I am not sure if I get steps 3 and 4 right. |
I was unable to locate "script block's fallback character encoding", and I don't know which one is "character encoding" should any of these mimic this: |
From what I understand fromhttps://html.spec.whatwg.org/multipage/scripting.html#establish-script-block-source , I should deduce "script block's fallback character encoding" from document's one. I added two "HELPME" comments, with specific questions. I would appreciate some suggestions. |
First, in Servo right now, "the script block's fallback character encoding" will always be UTF-8, so feel free to read "UTF-8" where that is written. Second, I think we'll need to change the type of |
I implemented suggested changes. I open PR now to see Travis CI output #9248 I also have a question what tests should look like. Or should I write some unit tests in Rust? |
Issue9185 I have to write tests yet, but I wanted to see full Travis CI output. Fixes #9185 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9248) <!-- Reviewable:end -->
Issue9185 I have to write tests yet, but I wanted to see full Travis CI output. Fixes #9185 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9248) <!-- Reviewable:end -->
Issue9185 I have to write tests yet, but I wanted to see full Travis CI output. Fixes #9185 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9248) <!-- Reviewable:end -->
Issue9185 I have to write tests yet, but I wanted to see full Travis CI output. Fixes #9185 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9248) <!-- Reviewable:end -->
Issue9185 I have to write tests yet, but I wanted to see full Travis CI output. Fixes #9185 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9248) <!-- Reviewable:end -->
Issue9185 I have to write tests yet, but I wanted to see full Travis CI output. Fixes #9185 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9248) <!-- Reviewable:end -->
Issue9185 I have to write tests yet, but I wanted to see full Travis CI output. Fixes #9185 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9248) <!-- Reviewable:end -->
Issue9185 I have to write tests yet, but I wanted to see full Travis CI output. Fixes #9185 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9248) <!-- Reviewable:end -->
Issue9185 I have to write tests yet, but I wanted to see full Travis CI output. Fixes #9185 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9248) <!-- Reviewable:end -->
Issue9185 I have to write tests yet, but I wanted to see full Travis CI output. Fixes #9185 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9248) <!-- Reviewable:end -->
Issue9185 I have to write tests yet, but I wanted to see full Travis CI output. Fixes #9185 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9248) <!-- Reviewable:end -->
Fixed by #10079. |
components/script/dom/htmlscriptelement.rs
,fn execute
.tests/wpt/web-platform-tests/html/semantics/scripting-1/the-script-element
.The text was updated successfully, but these errors were encountered: