aboutsummaryrefslogtreecommitdiff
path: root/test/command/7099.md
diff options
context:
space:
mode:
authorJohn MacFarlane <jgm@berkeley.edu>2021-02-13 13:06:22 -0800
committerJohn MacFarlane <jgm@berkeley.edu>2021-02-13 13:08:34 -0800
commitd84a6041e12547331f3a252ea4e8b4d229ba1159 (patch)
tree675b890c2f20d448ffa91c6ad0c669d50409fcb6 /test/command/7099.md
parent6e73273916a55448c1a12ece343454ef139648a8 (diff)
downloadpandoc-d84a6041e12547331f3a252ea4e8b4d229ba1159.tar.gz
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.
Diffstat (limited to 'test/command/7099.md')
-rw-r--r--test/command/7099.md14
1 files changed, 12 insertions, 2 deletions
diff --git a/test/command/7099.md b/test/command/7099.md
index d9ff8e5ff..33ac8aea1 100644
--- a/test/command/7099.md
+++ b/test/command/7099.md
@@ -2,7 +2,17 @@
% pandoc -f html -t native --verbose
<iframe src=""></iframe>
^D
-[INFO] Fetching ...
-[INFO] Skipped '<iframe src></iframe>' at input line 1 column 1
+[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
[]
```