-
Notifications
You must be signed in to change notification settings - Fork 528
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 HTML validation #3192
base: main
Are you sure you want to change the base?
Improve HTML validation #3192
Conversation
if (string.Equals("src", attr.Name, StringComparison.OrdinalIgnoreCase)) | ||
{ | ||
if (!Src.Any(x => attr.Value.StartsWith(x, StringComparison.OrdinalIgnoreCase))) | ||
{ | ||
onInvalidAttr(element, attr); | ||
} | ||
} |
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.
Can we add a few examples to the tests of what this now supports? (i.e. the IG image example) Are there any negative test cases we should add?
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.
I don't think there are any negatives to add. @michael-wilson-au added a negative test as part of the first PR, but my change only removes a restriction. I'll add some examples of what is supported.
Waiting for customer communication to be planned before merging. As this is a breaking change due to the more strict validation we want to alert customers first. |
Description
Improves HTML validation with change from #3101 and removing src validation which was preventing most Structure Definitions from being loaded.
Related issues
Addresses #3100
Testing
New/existing tests
FHIR Team Checklist
Semver Change (docs)
Patch