diff --git a/src/docs.rs b/src/docs.rs index 19a34ee..766ce9f 100644 --- a/src/docs.rs +++ b/src/docs.rs @@ -177,8 +177,10 @@ mod tests { #[tokio::test] async fn page_pulls_nothing_from_other_origins() { let html = built().html.as_str(); - // The stylesheet may mention `https://` in a selector; no attribute may load from one. - assert!(!html.contains("=\"http"), "{html}"); + // The stylesheet names `https://` in a selector; no tag may load from one. + for attr in ["src", "href", "action"] { + assert!(!html.contains(&format!("{attr}=\"http")), "{attr}: {html}"); + } assert!(!INIT_JS.contains("http://") && !INIT_JS.contains("https://")); }