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

Fix position in reports for CSS and JS in HTML #2062

Merged
merged 8 commits into from
Mar 15, 2019

Conversation

antross
Copy link
Member

@antross antross commented Mar 13, 2019

Pull request checklist

Make sure you:

For non-trivial changes, please make sure you also:

  • Added/Updated related documentation.
  • Added/Updated related tests.

Short description of the change(s)

Fix #1956

Includes a number of improvements across packages already split into dedicated commits.

@antross antross requested review from molant and sarvaje as code owners March 13, 2019 21:14
@antross antross force-pushed the fix/css-in-html-location branch 2 times, most recently from b6751f8 to 1a3f93a Compare March 14, 2019 18:00
@antross antross requested review from utsavized and sarvaje March 14, 2019 18:01
@antross antross force-pushed the fix/css-in-html-location branch from 1a3f93a to fe28d6b Compare March 14, 2019 18:55
antross added 7 commits March 14, 2019 14:16
Also update docs to explain how `report` can be used with both
`element` and `location` to specify an offset into an element's
content.
Align with browser behavior to make these easier to consume.
Also refactor to use `innerHTML` instead of a regex against `outerHTML`.
@antross antross force-pushed the fix/css-in-html-location branch from fe28d6b to ffd74c8 Compare March 14, 2019 20:28
@antross
Copy link
Member Author

antross commented Mar 14, 2019

@sarvaje @molant @utsavized This is ready for review if you have some time.

I'd like to get it in so I can rebase #1924 and #1966 on it.

Also enhance find-original-element to aid in getting location data
and fix passing `ignoredUrls` to `hint-runner` in `utils-test-helpers`.
@antross antross force-pushed the fix/css-in-html-location branch from ffd74c8 to a13073c Compare March 14, 2019 20:35
packages/hint-sri/package.json Outdated Show resolved Hide resolved
Copy link
Contributor

@utsavized utsavized left a comment

Choose a reason for hiding this comment

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

Looks good to me

@antross
Copy link
Member Author

antross commented Mar 15, 2019

@sarvaje Any other feedback? Or am I good to merge this?

@sarvaje
Copy link
Contributor

sarvaje commented Mar 15, 2019

@antross LGTM

@antross antross merged commit 4ad0ea4 into webhintio:master Mar 15, 2019
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.

[Bug] CSS hints report wrong position for CSS inline in HTML [3.5]
4 participants