diff --git a/src/Libraries/Web/Html/Element.cs b/src/Libraries/Web/Html/Element.cs index e1379a913..1e6bcdfdd 100644 --- a/src/Libraries/Web/Html/Element.cs +++ b/src/Libraries/Web/Html/Element.cs @@ -411,6 +411,10 @@ public ElementAttribute GetAttributeNode(ElementAttributeName name) { return null; } + public ClientRect GetBoundingClientRect() { + return null; + } + public ClientRectList GetClientRects() { return null; } diff --git a/src/Libraries/Web/Html/ElementEvent.cs b/src/Libraries/Web/Html/ElementEvent.cs index 68dd09c33..c14f8272e 100644 --- a/src/Libraries/Web/Html/ElementEvent.cs +++ b/src/Libraries/Web/Html/ElementEvent.cs @@ -38,6 +38,20 @@ public bool CancelBubble { } } + [ScriptField] + public int ClientX { + get { + return 0; + } + } + + [ScriptField] + public int ClientY { + get { + return 0; + } + } + [ScriptField] public bool CtrlKey { get { @@ -101,6 +115,20 @@ public int OffsetY { } } + [ScriptField] + public int PageX { + get { + return 0; + } + } + + [ScriptField] + public int PageY { + get { + return 0; + } + } + [ScriptField] public bool ReturnValue { get { @@ -110,6 +138,20 @@ public bool ReturnValue { } } + [ScriptField] + public int ScreenX { + get { + return 0; + } + } + + [ScriptField] + public int ScreenY { + get { + return 0; + } + } + [ScriptField] public bool ShiftKey { get { @@ -152,6 +194,14 @@ public string Type { } } + [ScriptField] + public int WheelDelta + { + get { + return 0; + } + } + public void PreventDefault() { } diff --git a/src/Libraries/Web/Html/ImageElement.cs b/src/Libraries/Web/Html/ImageElement.cs index 3e46da8e7..3a266dba2 100644 --- a/src/Libraries/Web/Html/ImageElement.cs +++ b/src/Libraries/Web/Html/ImageElement.cs @@ -38,6 +38,16 @@ public bool Complete { } } + [ScriptField] + public string CrossOrigin + { + get { + return null; + } + set { + } + } + [ScriptField] public string Src { get {