diff --git a/Tests/LibWeb/Text/expected/HTML/reflected-integer-attributes.txt b/Tests/LibWeb/Text/expected/HTML/reflected-integer-attributes.txt new file mode 100644 index 00000000000..b51ac609989 --- /dev/null +++ b/Tests/LibWeb/Text/expected/HTML/reflected-integer-attributes.txt @@ -0,0 +1,18 @@ +img.hspace after setting to -1: 0 +img.hspace after setting to 20: 20 +img.hspace after setting to 2147483648: 0 +img.vspace after setting to -1: 0 +img.vspace after setting to 20: 20 +img.vspace after setting to 2147483648: 0 +marquee.hspace after setting to -1: 0 +marquee.hspace after setting to 20: 20 +marquee.hspace after setting to 2147483648: 0 +marquee.vspace after setting to -1: 0 +marquee.vspace after setting to 20: 20 +marquee.vspace after setting to 2147483648: 0 +object.hspace after setting to -1: 0 +object.hspace after setting to 20: 20 +object.hspace after setting to 2147483648: 0 +object.vspace after setting to -1: 0 +object.vspace after setting to 20: 20 +object.vspace after setting to 2147483648: 0 diff --git a/Tests/LibWeb/Text/input/HTML/reflected-integer-attributes.html b/Tests/LibWeb/Text/input/HTML/reflected-integer-attributes.html new file mode 100644 index 00000000000..e894b0bebc2 --- /dev/null +++ b/Tests/LibWeb/Text/input/HTML/reflected-integer-attributes.html @@ -0,0 +1,23 @@ + + + diff --git a/Userland/Libraries/LibWeb/HTML/HTMLImageElement.idl b/Userland/Libraries/LibWeb/HTML/HTMLImageElement.idl index e7ba271cf99..5f4e26749b9 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLImageElement.idl +++ b/Userland/Libraries/LibWeb/HTML/HTMLImageElement.idl @@ -30,8 +30,8 @@ interface HTMLImageElement : HTMLElement { [CEReactions, Reflect] attribute DOMString name; [FIXME, CEReactions] attribute USVString lowsrc; [CEReactions, Reflect] attribute DOMString align; - [FIXME, CEReactions] attribute unsigned long hspace; - [FIXME, CEReactions] attribute unsigned long vspace; + [CEReactions, Reflect] attribute unsigned long hspace; + [CEReactions, Reflect] attribute unsigned long vspace; [FIXME, CEReactions] attribute USVString longDesc; [CEReactions, LegacyNullToEmptyString, Reflect] attribute DOMString border; diff --git a/Userland/Libraries/LibWeb/HTML/HTMLMarqueeElement.idl b/Userland/Libraries/LibWeb/HTML/HTMLMarqueeElement.idl index fbd9739267c..eb84d9ffcd9 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLMarqueeElement.idl +++ b/Userland/Libraries/LibWeb/HTML/HTMLMarqueeElement.idl @@ -10,12 +10,12 @@ interface HTMLMarqueeElement : HTMLElement { [CEReactions, Reflect=bgcolor] attribute DOMString bgColor; [CEReactions, Reflect] attribute DOMString direction; [CEReactions, Reflect] attribute DOMString height; - [FIXME, CEReactions] attribute unsigned long hspace; + [CEReactions, Reflect] attribute unsigned long hspace; [FIXME, CEReactions] attribute long loop; [FIXME, CEReactions] attribute unsigned long scrollAmount; [FIXME, CEReactions] attribute unsigned long scrollDelay; [FIXME, CEReactions] attribute boolean trueSpeed; - [FIXME, CEReactions] attribute unsigned long vspace; + [CEReactions, Reflect] attribute unsigned long vspace; [CEReactions, Reflect] attribute DOMString width; [FIXME] undefined start(); diff --git a/Userland/Libraries/LibWeb/HTML/HTMLObjectElement.idl b/Userland/Libraries/LibWeb/HTML/HTMLObjectElement.idl index ee1ab9ec6ab..912b440145c 100644 --- a/Userland/Libraries/LibWeb/HTML/HTMLObjectElement.idl +++ b/Userland/Libraries/LibWeb/HTML/HTMLObjectElement.idl @@ -29,9 +29,9 @@ interface HTMLObjectElement : HTMLElement { [CEReactions, Reflect] attribute DOMString archive; [CEReactions, Reflect] attribute DOMString code; [CEReactions, Reflect] attribute boolean declare; - [FIXME, CEReactions] attribute unsigned long hspace; + [CEReactions, Reflect] attribute unsigned long hspace; [CEReactions, Reflect] attribute DOMString standby; - [FIXME, CEReactions] attribute unsigned long vspace; + [CEReactions, Reflect] attribute unsigned long vspace; [FIXME, CEReactions] attribute DOMString codeBase; [CEReactions, Reflect=codetype] attribute DOMString codeType; [CEReactions, Reflect=usemap] attribute DOMString useMap;