Skip to content

Commit 35b2d79

Browse files
Closure Teamcopybara-github
Closure Team
authored andcommitted
Downgrade the global attribute contracts for "cite" and "poster".
These attributes can't run javascript: URLs in mordern browsers. In Chrome, - setting the `cite` attribute to a `javascript:` URL doesn't attempt URL parsing. - setting the `poster` attribute to a `javascript:` URL on a video element results in `net::ERR_UNKNOWN_URL_SCHEME`. This is the same behavior as setting a `src` to `javascript:` on an `img` element. PiperOrigin-RevId: 716636018
1 parent 8dfc4f7 commit 35b2d79

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

src/com/google/javascript/jscomp/ConformanceRules.java

-2
Original file line numberDiff line numberDiff line change
@@ -2384,8 +2384,6 @@ public static final class SecuritySensitiveAttributes {
23842384
"action",
23852385
"formaction",
23862386
"sandbox",
2387-
"cite",
2388-
"poster",
23892387
"icon",
23902388
"codebase",
23912389
"data");

0 commit comments

Comments
 (0)