-
Notifications
You must be signed in to change notification settings - Fork 210
Load html #347
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
Open
gkellogg
wants to merge
18
commits into
main
Choose a base branch
from
load-html
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Load html #347
Changes from 1 commit
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
d25c882
Load JSON-LD from HTML documents.
gkellogg 7730b10
Set default for expandAllScripts to true for flatten and toRdf.
gkellogg 59da13f
Fix lint errors.
gkellogg bdc9343
Don't extract all scripts if there is a fragment identifier.
gkellogg 7b29cb3
Update changelog
gkellogg a41f081
Add contentType check to XHR documentLoader link header test.
gkellogg 03c4834
Test for DOMParser slightly more complicated.
gkellogg 5fa1b2a
Fix CHANGELOG.
gkellogg 5315d67
Apply suggestions from @dlongley code review
gkellogg 31f192d
More changes suggested by @dlongley.
gkellogg 9d5ec19
Fix changelog.
davidlehn 2664ac7
Use content-type package, instead of purpose-defined parseContentType…
gkellogg 868dae6
Update lib/documentLoaders/xhr.js
gkellogg e38ba63
Update lib/documentLoaders/node.js
gkellogg 9a9bbdb
Update lib/jsonld.js
gkellogg 7cc3d1c
Fix lint issues.
davidlehn 66a2092
Update error code.
davidlehn 11b68b9
Error when loading HTML and no script element exists.
gkellogg File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Test for DOMParser slightly more complicated.
Skip HTML tests if there is no DOMParser, or loading the module raises an exception. Allows Karma tests to pass.
- Loading branch information
commit 03c4834467f335ebdedb92b469bdb26e4fa678b2
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@davidlehn -- can you comment here? I don't think we can easily support this pattern with webpack. Can you suggest an alternative path forward? Instead of a
requirehere, the user may need to have installed another package themselves that registered a DOM parser with jsonld in a similar way we do with RDF parsers. If so -- we should copy that pattern since it's already used.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Update: PR #341 removes
xmldomas a dependency.This PR here (#347) should be updated to take that into account (specifically line 1022 here).