mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-15 23:09:05 +00:00
LibWeb/SVG: Implement the SVGAElement.referrerPolicy
attribute
This commit is contained in:
parent
d86f0a1b29
commit
31e8189f9f
Notes:
github-actions[bot]
2025-07-12 09:06:49 +00:00
Author: https://github.com/tcl3
Commit: 31e8189f9f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/5412
Reviewed-by: https://github.com/gmta ✅
Reviewed-by: https://github.com/shannonbooth
4 changed files with 19 additions and 6 deletions
|
@ -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}'`);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue