pandoc/test/command/7099.md
John MacFarlane d84a6041e1 HTML reader: fix bad handling of empty src attribute in iframe.
- If src is empty, we simply skip the iframe.
- If src is invalid or cannot be fetched, we issue a warning
  and skip instead of failing with an error.
- Closes #7099.
2021-02-13 13:08:34 -08:00

482 B

% pandoc -f html -t native --verbose
<iframe src=""></iframe>
^D
[INFO] Skipped '<iframe src></iframe>' at input line 1 column 16
[]
% pandoc -f html -t native --verbose
<iframe src="h:invalid@url"></iframe>
^D
[INFO] Fetching h:invalid@url...
[WARNING] Could not fetch resource 'h:invalid@url': Could not fetch h:invalid@url
  InvalidUrlException "h:invalid@url" "Invalid scheme"
[INFO] Skipped '<iframe src="h:invalid@url"></iframe>' at input line 1 column 29
[]