mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-28 02:27:19 +02:00
LibWeb/SVG: Implement the SVGAElement.referrerPolicy attribute
This commit is contained in:
committed by
Jelle Raaijmakers
parent
d86f0a1b29
commit
31e8189f9f
Notes:
github-actions[bot]
2025-07-12 09:06:49 +00:00
Author: https://github.com/tcl3 Commit: https://github.com/LadybirdBrowser/ladybird/commit/31e8189f9fa Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5412 Reviewed-by: https://github.com/gmta ✅ Reviewed-by: https://github.com/shannonbooth
@@ -2,8 +2,13 @@
|
||||
<script src="../include.js"></script>
|
||||
<script>
|
||||
test(() => {
|
||||
let elements = [];
|
||||
for (const elementName of ["link", "a", "area", "img", "iframe", "script"]) {
|
||||
const element = document.createElement(elementName);
|
||||
elements.push([document.createElement(elementName), elementName]);
|
||||
}
|
||||
elements.push([document.createElementNS("http://www.w3.org/2000/svg", "a"), "svg:a"]);
|
||||
|
||||
for (const [element, elementName] of elements) {
|
||||
println(`${elementName} referrerPolicy initial value: '${element.referrerPolicy}'`);
|
||||
element.referrerPolicy = "invalid";
|
||||
println(`${elementName} referrerPolicy value after setting to "invalid": '${element.referrerPolicy}'`);
|
||||
|
||||
Reference in New Issue
Block a user