diff --git a/Libraries/LibWeb/SVG/SVGAElement.idl b/Libraries/LibWeb/SVG/SVGAElement.idl index 9fa6c4299fb..672cc7559b5 100644 --- a/Libraries/LibWeb/SVG/SVGAElement.idl +++ b/Libraries/LibWeb/SVG/SVGAElement.idl @@ -1,4 +1,5 @@ #import +#import #import #import @@ -14,7 +15,7 @@ interface SVGAElement : SVGGraphicsElement { [Reflect] attribute DOMString hreflang; [Reflect] attribute DOMString type; - [FIXME] attribute DOMString referrerPolicy; + [Reflect=referrerpolicy, Enumerated=ReferrerPolicy] attribute DOMString referrerPolicy; }; diff --git a/Tests/LibWeb/Text/expected/HTML/referrerPolicy-attribute.txt b/Tests/LibWeb/Text/expected/HTML/referrerPolicy-attribute.txt index a54d9d385aa..d3784ea3823 100644 --- a/Tests/LibWeb/Text/expected/HTML/referrerPolicy-attribute.txt +++ b/Tests/LibWeb/Text/expected/HTML/referrerPolicy-attribute.txt @@ -40,3 +40,10 @@ script referrerPolicy value after setting to null: '' script referrerPolicy value after setting to "NO-REFERRER": 'no-referrer' script referrerPolicy value after setting to "": '' script referrerPolicy value after calling removeAttribute: '' +svg:a referrerPolicy initial value: '' +svg:a referrerPolicy value after setting to "invalid": '' +svg:a referrerPolicy value after setting to "no-referrer": 'no-referrer' +svg:a referrerPolicy value after setting to null: '' +svg:a referrerPolicy value after setting to "NO-REFERRER": 'no-referrer' +svg:a referrerPolicy value after setting to "": '' +svg:a referrerPolicy value after calling removeAttribute: '' diff --git a/Tests/LibWeb/Text/expected/wpt-import/svg/idlharness.window.txt b/Tests/LibWeb/Text/expected/wpt-import/svg/idlharness.window.txt index 3cc82797627..194f1c0959b 100644 --- a/Tests/LibWeb/Text/expected/wpt-import/svg/idlharness.window.txt +++ b/Tests/LibWeb/Text/expected/wpt-import/svg/idlharness.window.txt @@ -2,8 +2,8 @@ Harness status: OK Found 1781 tests -940 Pass -841 Fail +942 Pass +839 Fail Pass idl_test setup Pass idl_test validation Pass Partial interface Document: original interface defined @@ -1560,7 +1560,7 @@ Pass SVGAElement interface: attribute relList Pass SVGAElement interface: attribute hreflang Pass SVGAElement interface: attribute type Fail SVGAElement interface: attribute text -Fail SVGAElement interface: attribute referrerPolicy +Pass SVGAElement interface: attribute referrerPolicy Fail SVGAElement interface: attribute origin Fail SVGAElement interface: attribute protocol Fail SVGAElement interface: attribute username @@ -1582,7 +1582,7 @@ Pass SVGAElement interface: objects.a must inherit property "relList" with the p Pass SVGAElement interface: objects.a must inherit property "hreflang" with the proper type Pass SVGAElement interface: objects.a must inherit property "type" with the proper type Fail SVGAElement interface: objects.a must inherit property "text" with the proper type -Fail SVGAElement interface: objects.a must inherit property "referrerPolicy" with the proper type +Pass SVGAElement interface: objects.a must inherit property "referrerPolicy" with the proper type Fail SVGAElement interface: objects.a must inherit property "origin" with the proper type Fail SVGAElement interface: objects.a must inherit property "protocol" with the proper type Fail SVGAElement interface: objects.a must inherit property "username" with the proper type diff --git a/Tests/LibWeb/Text/input/HTML/referrerPolicy-attribute.html b/Tests/LibWeb/Text/input/HTML/referrerPolicy-attribute.html index d4df079699d..01e2766e8d1 100644 --- a/Tests/LibWeb/Text/input/HTML/referrerPolicy-attribute.html +++ b/Tests/LibWeb/Text/input/HTML/referrerPolicy-attribute.html @@ -2,8 +2,13 @@