hint
hint copied to clipboard
Fix: Gracefully handle empty <head> tag
Pull request checklist
Make sure you:
- [x] Signed the Contributor License Agreement (after creating PR)
- [x] Followed the commit message guidelines
For non-trivial changes, please make sure you also:
- [ ] Added/Updated related documentation.
- [x] Added/Updated related tests.
Short description of the change(s)
Prevent an internal error from occurring by no longer assuming the head element has at least one child. Note this can still produce false-positives in static contexts where the content being processed by webhint is different than what would actually be sent to the browser (e.g. for server-side templates).
Fix #5082 Ref microsoft/vscode-edge-devtools#1050
/azp run
Azure Pipelines successfully started running 1 pipeline(s).
/azp run
Azure Pipelines successfully started running 1 pipeline(s).