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

Allow just setting the elementtiming attribute #38

Merged
merged 1 commit into from
Oct 21, 2019
Merged

Conversation

npm1
Copy link
Collaborator

@npm1 npm1 commented Oct 18, 2019

For #37. When the attribute is set it should trigger observation, even if it is set to the empty string. This is useful because doing something such as <img ... elementtiming> sets the attribute value to the empty string.


Preview | Diff

When the attribute is set it should trigger observation, even if it is set to the empty string. This is useful because doing something such as <img ... elementtiming> sets the attribute value to the empty string.
@npm1 npm1 requested a review from yoavweiss October 18, 2019 20:51
@npm1
Copy link
Collaborator Author

npm1 commented Oct 18, 2019

Chrome implementation change along with WPT will follow... ptal!

@yoavweiss
Copy link
Collaborator

So the use case for this is timing for images, where identification is URL based?

@npm1
Copy link
Collaborator Author

npm1 commented Oct 21, 2019

Yea the use case requested was for images, although I think it should be consistent with text.

Copy link
Collaborator

@yoavweiss yoavweiss left a comment

Choose a reason for hiding this comment

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

LGTM

@npm1 npm1 merged commit a0d8d09 into master Oct 21, 2019
@npm1 npm1 deleted the empty-attribute branch October 21, 2019 15:20
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Oct 21, 2019
This CL changes the behavior in cases where the elementtiming attribute
is set but not to a specific value, so that the affected elements are
considered registered for observation. It also adds a test with image
and text testcases. This follow the spec change at
WICG/element-timing#38

Bug: 1011009
Change-Id: If33f55b0992545e6e13f108b923bbcfc546f4d33
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Oct 21, 2019
This CL changes the behavior in cases where the elementtiming attribute
is set but not to a specific value, so that the affected elements are
considered registered for observation. It also adds a test with image
and text testcases. This follow the spec change at
WICG/element-timing#38

Bug: 1011009
Change-Id: If33f55b0992545e6e13f108b923bbcfc546f4d33
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1871638
Reviewed-by: Steve Kobes <skobes@chromium.org>
Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#707947}
chromium-wpt-export-bot pushed a commit to web-platform-tests/wpt that referenced this pull request Oct 21, 2019
This CL changes the behavior in cases where the elementtiming attribute
is set but not to a specific value, so that the affected elements are
considered registered for observation. It also adds a test with image
and text testcases. This follow the spec change at
WICG/element-timing#38

Bug: 1011009
Change-Id: If33f55b0992545e6e13f108b923bbcfc546f4d33
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1871638
Reviewed-by: Steve Kobes <skobes@chromium.org>
Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#707947}
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Oct 24, 2019
…elementtiming attribute, a=testonly

Automatic update from web-platform-tests
[ElementTiming] Allow empty but present elementtiming attribute

This CL changes the behavior in cases where the elementtiming attribute
is set but not to a specific value, so that the affected elements are
considered registered for observation. It also adds a test with image
and text testcases. This follow the spec change at
WICG/element-timing#38

Bug: 1011009
Change-Id: If33f55b0992545e6e13f108b923bbcfc546f4d33
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1871638
Reviewed-by: Steve Kobes <skobes@chromium.org>
Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#707947}

--

wpt-commits: 6174e0943360abb81f64a54205a7782531cddcaa
wpt-pr: 19812
xeonchen pushed a commit to xeonchen/gecko that referenced this pull request Oct 24, 2019
…elementtiming attribute, a=testonly

Automatic update from web-platform-tests
[ElementTiming] Allow empty but present elementtiming attribute

This CL changes the behavior in cases where the elementtiming attribute
is set but not to a specific value, so that the affected elements are
considered registered for observation. It also adds a test with image
and text testcases. This follow the spec change at
WICG/element-timing#38

Bug: 1011009
Change-Id: If33f55b0992545e6e13f108b923bbcfc546f4d33
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1871638
Reviewed-by: Steve Kobes <skobes@chromium.org>
Commit-Queue: Nicolás Peña Moreno <npm@chromium.org>
Cr-Commit-Position: refs/heads/master@{#707947}

--

wpt-commits: 6174e0943360abb81f64a54205a7782531cddcaa
wpt-pr: 19812
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 27, 2019
…elementtiming attribute, a=testonly

Automatic update from web-platform-tests
[ElementTiming] Allow empty but present elementtiming attribute

This CL changes the behavior in cases where the elementtiming attribute
is set but not to a specific value, so that the affected elements are
considered registered for observation. It also adds a test with image
and text testcases. This follow the spec change at
WICG/element-timing#38

Bug: 1011009
Change-Id: If33f55b0992545e6e13f108b923bbcfc546f4d33
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1871638
Reviewed-by: Steve Kobes <skobeschromium.org>
Commit-Queue: Nicolás Peña Moreno <npmchromium.org>
Cr-Commit-Position: refs/heads/master{#707947}

--

wpt-commits: 6174e0943360abb81f64a54205a7782531cddcaa
wpt-pr: 19812

UltraBlame original commit: c2a24aab12db66f6f27a6ebf033cef186b6c2119
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 27, 2019
…elementtiming attribute, a=testonly

Automatic update from web-platform-tests
[ElementTiming] Allow empty but present elementtiming attribute

This CL changes the behavior in cases where the elementtiming attribute
is set but not to a specific value, so that the affected elements are
considered registered for observation. It also adds a test with image
and text testcases. This follow the spec change at
WICG/element-timing#38

Bug: 1011009
Change-Id: If33f55b0992545e6e13f108b923bbcfc546f4d33
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1871638
Reviewed-by: Steve Kobes <skobeschromium.org>
Commit-Queue: Nicolás Peña Moreno <npmchromium.org>
Cr-Commit-Position: refs/heads/master{#707947}

--

wpt-commits: 6174e0943360abb81f64a54205a7782531cddcaa
wpt-pr: 19812

UltraBlame original commit: c2a24aab12db66f6f27a6ebf033cef186b6c2119
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 27, 2019
…elementtiming attribute, a=testonly

Automatic update from web-platform-tests
[ElementTiming] Allow empty but present elementtiming attribute

This CL changes the behavior in cases where the elementtiming attribute
is set but not to a specific value, so that the affected elements are
considered registered for observation. It also adds a test with image
and text testcases. This follow the spec change at
WICG/element-timing#38

Bug: 1011009
Change-Id: If33f55b0992545e6e13f108b923bbcfc546f4d33
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1871638
Reviewed-by: Steve Kobes <skobeschromium.org>
Commit-Queue: Nicolás Peña Moreno <npmchromium.org>
Cr-Commit-Position: refs/heads/master{#707947}

--

wpt-commits: 6174e0943360abb81f64a54205a7782531cddcaa
wpt-pr: 19812

UltraBlame original commit: c2a24aab12db66f6f27a6ebf033cef186b6c2119
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