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

feat: report 'file' URLs as errors and other URL improvements+tests #1416

Merged
merged 4 commits into from
Dec 6, 2022

Conversation

rdeltour
Copy link
Member

@rdeltour rdeltour commented Dec 2, 2022

feat: report 'file' URLs as errors

Report file: URLs as a new error RSC-030

Fixes #1270

feat: extend proper URL checking to more places (like CSS)

This commit:

  • extracts the URL checking logic from BaseURLHandler (SAX handler)
    to its own independent class URLChecker
  • applies the same URL-checking logic to CSS as was used in XML, using
    the new URLChecker
  • applies the URL-checking logic to the few places were it wasn't the
    case already (in XML handlers)

test: add test for 'mailto' URL

Closes #1265

test: add test for path-absolute URL strings in package document

Closes #1252

This commit:
- extracts the URL checking logic from `BaseURLHandler` (SAX handler)
  to its own independent class `URLChecker`
- applies the same URL-checking logic to CSS as was used in XML, using
  the new `URLChecker`
- applies the URL-checking logic to the few places were it wasn't the
  case already (in XML handlers)
Report `file:` URLs as a new error RSC-030

Fixes #1270
@rdeltour rdeltour added this to the v5.0.0-beta milestone Dec 2, 2022
@rdeltour rdeltour self-assigned this Dec 2, 2022
Base automatically changed from feat/overlays-audio-fragments to release/v5.0.0 December 6, 2022 14:38
@rdeltour rdeltour merged commit 0f6b509 into release/v5.0.0 Dec 6, 2022
@rdeltour rdeltour deleted the feat/file-urls-check branch December 6, 2022 14:38
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