-
Notifications
You must be signed in to change notification settings - Fork 635
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
Improve location-helpers to work across different scenarios #63
Comments
* Fix issue in `location-helpers` related to calculating the position of an error when `content` is passed to `findProblemLocation` and the problem is in the first line of the element's HTML. * Update tests that had the issue described above. * Update the HTML of the tests to put `doctype`, `html`, and `head` in the same line until #63 is fixed entirely. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Ref #63
We can use |
The current differences we have are:
Because HTML allows to not have The rules will use We should still try to find the right location in the document for a given element, but switching to this model will make testing rules a lot easier (at least with what we have right now). |
We could use |
Per [this comment](#63 (comment)) we are changing to just report the issue relative to the element and (in the future) let `rule-context` figure out the rest. This unblocks us to continue testing `collector`s and make sure they are consistent at least in that aspect. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Work on #63 Work on #113
Per [this comment](#63 (comment)) we are changing to just report the issue relative to the element and (in the future) let `rule-context` figure out the rest. This unblocks us to continue testing `collector`s and make sure they are consistent at least in that aspect. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Work on #63 Work on #113
Due to JSDOM and CDP have a similar behavior with the property outerHTML. We are going to use it and we should let the users know that the posision is approximate not exactly. The "problem" is that not only the tags html and header are moved to the first line but there are other elements that also are moved when we use the outerHTML, but this property is the only way (AFAIK) to get the current HTML in an SPA. Fix how we wait to all the request finish in CDP Fix #63
Due to JSDOM and CDP have a similar behavior with the property outerHTML. We are going to use it and we should let the users know that the posision is approximate not exactly. The "problem" is that not only the tags html and header are moved to the first line but there are other elements that also are moved when we use the outerHTML, but this property is the only way (AFAIK) to get the current HTML in an SPA. Fix how we wait to all the request finish in CDP Fix #63
We need to:
<!doctype html><html><head>
in the same lineThe text was updated successfully, but these errors were encountered: