Skip to content
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

Remove support for UTF-16 in TextEncoder #13231

Closed
Ms2ger opened this issue Sep 12, 2016 · 5 comments
Closed

Remove support for UTF-16 in TextEncoder #13231

Ms2ger opened this issue Sep 12, 2016 · 5 comments

Comments

@Ms2ger
Copy link
Contributor

@Ms2ger Ms2ger commented Sep 12, 2016

Blocks #5601.

The specification was changed. This should allow us to remove the encoder field of the TextEncoder struct.

  • Spec: https://encoding.spec.whatwg.org/#textencoder.
  • Code: components/script/dom/textencoder.rs, components/script/dom/webidls/TextEncoder.webidl.
  • Test: /encoding/textencoder-constructor-non-utf.html, (possibly) /encoding/idlharness.html.
@highfive
Copy link

@highfive highfive commented Sep 12, 2016

Please make a comment here if you intend to work on this issue. Thank you!

@ashrwin
Copy link
Contributor

@ashrwin ashrwin commented Sep 12, 2016

I'd like to take this :)

@jdm
Copy link
Member

@jdm jdm commented Sep 19, 2016

@ashrko619 Did you make progress on this? Any questions?

@ashrwin
Copy link
Contributor

@ashrwin ashrwin commented Sep 20, 2016

@jdm I did not know whether to work on this without being assigned 🙈
So here the methods Encode and Encoding use encoder.
What should we do here ?

@jdm
Copy link
Member

@jdm jdm commented Sep 20, 2016

The encoding specification changed so that TextEncoder only ever uses UTF-8 now. That means that we don't need an encoder variable in our implementation any more; we can use the UTF-8 encoder directly everywhere instead.

@ashrwin ashrwin mentioned this issue Sep 24, 2016
3 of 3 tasks complete
bors-servo added a commit that referenced this issue Sep 24, 2016
Removed support for UTF-16 in TextEncoder

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #13231  (github issue number if applicable).

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13405)
<!-- Reviewable:end -->
bors-servo added a commit that referenced this issue Sep 27, 2016
Removed support for UTF-16 in TextEncoder

<!-- Please describe your changes on the following line: -->

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `__` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [X] These changes fix #13231  (github issue number if applicable).

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13405)
<!-- Reviewable:end -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

4 participants
You can’t perform that action at this time.