Skip to content

Conversation

@ericduran
Copy link

@ericduran ericduran commented Jan 7, 2018

It looks like the example code was copied from a render output (post code highlight). So it had all the extra spans in the source.

This cleans up the source code but it also has the added benefit of also fixing the highlight (which wasn't working before because of the spans).

Note: I kept the styling the same as it was before but it's not really consistent with other examples in the perf specs, let me know. I can clean that up.

Before:

screen shot 2018-01-06 at 10 12 47 pm

After:

screen shot 2018-01-06 at 10 09 02 pm

@marcoscaceres marcoscaceres self-requested a review January 16, 2018 02:24
Copy link
Member

@marcoscaceres marcoscaceres left a comment

Choose a reason for hiding this comment

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

Approving, but noting that there is now a better example in the actual spec.

@ericduran
Copy link
Author

Thanks for the heads up. I'll change it to match the better example.

@ericduran
Copy link
Author

@marcoscaceres got a link? I looked through the spec but couldn't find the better example. There are some slightly different one but couldn't quick pick one, Ha.

Let me know which example you were thinking of and I'll update this to reflect that.

@marcoscaceres
Copy link
Member

@ericduran, see example 1 here: https://w3c.github.io/user-timing/#introduction

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.

2 participants