Skip to content

Join tokens when stringifying DOMTokenList - #6555

Merged
bors-servo merged 4 commits into
servo:masterfrom
frewsxcv:stringify-tokenlist
Jul 7, 2015
Merged

bors-servo merged 4 commits into
servo:masterfrom
frewsxcv:stringify-tokenlist

Conversation

@frewsxcv

@frewsxcv frewsxcv commented Jul 5, 2015

Copy link
Copy Markdown
Contributor

Review on Reviewable

@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jul 5, 2015
@hoppipolla-critic-bot

Copy link
Copy Markdown

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 git rebase -i or git commit --amend) when updating this pull request.

@frewsxcv
frewsxcv force-pushed the stringify-tokenlist branch from 160c61e to ff2a3b9 Compare July 5, 2015 01:54
@frewsxcv

frewsxcv commented Jul 5, 2015

Copy link
Copy Markdown
Contributor Author

See individual commit descriptions for more information

@frewsxcv

frewsxcv commented Jul 5, 2015

Copy link
Copy Markdown
Contributor Author

Related to #1717

@Ms2ger

Ms2ger commented Jul 5, 2015

Copy link
Copy Markdown
Contributor

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit ff2a3b9 has been approved by Ms2ger

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit ff2a3b9 with merge 4bcdb22...

bors-servo pushed a commit that referenced this pull request Jul 5, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

💔 Test failed - mac1

@Ms2ger Ms2ger added S-needs-code-changes Changes have not yet been made that were requested by a reviewer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jul 5, 2015
@Ms2ger

Ms2ger commented Jul 5, 2015

Copy link
Copy Markdown
Contributor

Both commits have the same issue: they return strings with a leading space.

@frewsxcv

frewsxcv commented Jul 5, 2015

Copy link
Copy Markdown
Contributor Author

Ah, you're right, I'll fix it

@frewsxcv
frewsxcv force-pushed the stringify-tokenlist branch from ff2a3b9 to 6b9c1d9 Compare July 5, 2015 17:03
@highfive highfive added S-awaiting-review There is new code that needs to be reviewed. and removed S-needs-code-changes Changes have not yet been made that were requested by a reviewer. labels Jul 5, 2015
@frewsxcv

frewsxcv commented Jul 5, 2015

Copy link
Copy Markdown
Contributor Author

Fixed in the latest force push

@Ms2ger

Ms2ger commented Jul 5, 2015

Copy link
Copy Markdown
Contributor

Can we share the code too?

@frewsxcv

frewsxcv commented Jul 5, 2015

Copy link
Copy Markdown
Contributor Author

Can we share the code too?

Is there a better place to put it than util::str as a utility function join_atoms? It'd create a dependency in the util create on string_cache.

@Ms2ger

Ms2ger commented Jul 6, 2015

Copy link
Copy Markdown
Contributor

Mm, that sucks. A better solution would be to make Atom implement AsRef<str> and then use that in util. I can land it like this if you push back, though :)

@Ms2ger Ms2ger self-assigned this Jul 6, 2015
@Ms2ger Ms2ger added S-awaiting-answer Someone asked a question that requires an answer. and removed S-awaiting-review There is new code that needs to be reviewed. labels Jul 6, 2015
@Ms2ger Ms2ger closed this Jul 6, 2015
@Ms2ger Ms2ger reopened this Jul 6, 2015
frewsxcv added a commit to frewsxcv/string-cache that referenced this pull request Jul 6, 2015
bors-servo pushed a commit to servo/string-cache that referenced this pull request Jul 6, 2015
frewsxcv added 3 commits July 8, 2015 04:42
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
@frewsxcv
frewsxcv force-pushed the stringify-tokenlist branch from 6b9c1d9 to 7159fe7 Compare July 7, 2015 20:18
@highfive highfive added the S-awaiting-review There is new code that needs to be reviewed. label Jul 7, 2015
@frewsxcv

frewsxcv commented Jul 7, 2015

Copy link
Copy Markdown
Contributor Author

Force pushed with the changes requested

@Ms2ger

Ms2ger commented Jul 7, 2015

Copy link
Copy Markdown
Contributor

@bors-servo r+

@bors-servo

Copy link
Copy Markdown
Contributor

📌 Commit 7159fe7 has been approved by Ms2ger

@bors-servo

Copy link
Copy Markdown
Contributor

⌛ Testing commit 7159fe7 with merge d64f918...

bors-servo pushed a commit that referenced this pull request Jul 7, 2015
@jdm jdm added S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI. and removed S-awaiting-answer Someone asked a question that requires an answer. S-awaiting-review There is new code that needs to be reviewed. labels Jul 7, 2015
@bors-servo

Copy link
Copy Markdown
Contributor

☀️ Test successful - android, gonk, linux1, linux2, linux3, mac1, mac2, mac3

@bors-servo
bors-servo merged commit 7159fe7 into servo:master Jul 7, 2015
@frewsxcv
frewsxcv deleted the stringify-tokenlist branch October 9, 2015 14:46
aphrody-dev pushed a commit to aphrody-labs/browser that referenced this pull request Nov 16, 2026
aphrody-dev pushed a commit to aphrody-labs/browser that referenced this pull request Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-awaiting-merge The PR is in the process of compiling and running tests on the automated CI.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants