mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 01:29:17 +00:00
LibWeb: Implement HTMLImageElement.crossOrigin
This commit is contained in:
parent
d7d60268ec
commit
2ffda00347
Notes:
sideshowbarker
2024-07-17 22:41:14 +09:00
Author: https://github.com/jamierocks
Commit: 2ffda00347
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/24
Reviewed-by: https://github.com/tcl3 ✅
3 changed files with 9 additions and 2 deletions
|
@ -26,3 +26,10 @@ link crossOrigin value after setting to null: null
|
||||||
link crossOrigin value after setting to "USE-CREDENTIALS": use-credentials
|
link crossOrigin value after setting to "USE-CREDENTIALS": use-credentials
|
||||||
link crossOrigin value after setting to "": anonymous
|
link crossOrigin value after setting to "": anonymous
|
||||||
link crossOrigin value after calling removeAttribute: null
|
link crossOrigin value after calling removeAttribute: null
|
||||||
|
img crossOrigin initial value: null
|
||||||
|
img crossOrigin value after setting to "invalid": anonymous
|
||||||
|
img crossOrigin value after setting to "use-credentials": use-credentials
|
||||||
|
img crossOrigin value after setting to null: null
|
||||||
|
img crossOrigin value after setting to "USE-CREDENTIALS": use-credentials
|
||||||
|
img crossOrigin value after setting to "": anonymous
|
||||||
|
img crossOrigin value after calling removeAttribute: null
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<script src="../include.js"></script>
|
<script src="../include.js"></script>
|
||||||
<script>
|
<script>
|
||||||
test(() => {
|
test(() => {
|
||||||
for (let elementName of ["audio", "script", "video", "link"]) {
|
for (let elementName of ["audio", "script", "video", "link", "img"]) {
|
||||||
const element = document.createElement(elementName);
|
const element = document.createElement(elementName);
|
||||||
println(`${elementName} crossOrigin initial value: ${element.crossOrigin}`);
|
println(`${elementName} crossOrigin initial value: ${element.crossOrigin}`);
|
||||||
element.crossOrigin = "invalid";
|
element.crossOrigin = "invalid";
|
||||||
|
|
|
@ -11,7 +11,7 @@ interface HTMLImageElement : HTMLElement {
|
||||||
[CEReactions, Reflect] attribute DOMString src;
|
[CEReactions, Reflect] attribute DOMString src;
|
||||||
[CEReactions, Reflect] attribute DOMString srcset;
|
[CEReactions, Reflect] attribute DOMString srcset;
|
||||||
[CEReactions, Reflect] attribute DOMString sizes;
|
[CEReactions, Reflect] attribute DOMString sizes;
|
||||||
[FIXME, CEReactions] attribute DOMString? crossOrigin;
|
[CEReactions, Enumerated=CORSSettingsAttribute, Reflect=crossorigin] attribute DOMString? crossOrigin;
|
||||||
[CEReactions, Reflect=usemap] attribute DOMString useMap;
|
[CEReactions, Reflect=usemap] attribute DOMString useMap;
|
||||||
[CEReactions, Reflect=ismap] attribute boolean isMap;
|
[CEReactions, Reflect=ismap] attribute boolean isMap;
|
||||||
[CEReactions] attribute unsigned long width;
|
[CEReactions] attribute unsigned long width;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue