Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upJoin tokens when stringifying DOMTokenList #6555
Conversation
hoppipolla-critic-bot
commented
Jul 5, 2015
|
Critic review: https://critic.hoppipolla.co.uk/r/5467 This is an external review system which you may optionally use for the code review of your pull request. In order to help critic track your changes, please do not make in-place history rewrites (e.g. via |
|
See individual commit descriptions for more information |
|
Related to #1717 |
|
@bors-servo r+ |
|
|
Join tokens when stringifying DOMTokenList <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6555) <!-- Reviewable:end -->
|
|
|
Both commits have the same issue: they return strings with a leading space. |
|
Ah, you're right, I'll fix it |
|
Fixed in the latest force push |
|
Can we share the code too? |
Is there a better place to put it than |
|
Mm, that sucks. A better solution would be to make |
Implement AsRef<str> for Atom servo/servo#6555 (comment)
Related to: servo/string-cache#89
Previous, it would return the original String straight from the AttrValue, which might contain extraaneous whitespace. The spec specifies to just join the tokens together with \x20 https://dom.spec.whatwg.org/#stringification-behavior
|
Force pushed with the changes requested |
|
@bors-servo r+ |
|
|
Join tokens when stringifying DOMTokenList <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/6555) <!-- Reviewable:end -->
frewsxcv commentedJul 5, 2015