diff --git a/fixtures/html/htmlscriptelement-text.html b/fixtures/html/htmlscriptelement-text.html new file mode 100644 index 000000000..2ff462dd0 --- /dev/null +++ b/fixtures/html/htmlscriptelement-text.html @@ -0,0 +1,132 @@ + + + + + Test HTMLScriptElement.text Getter/Setter + + + +

Test HTMLScriptElement.text Getter/Setter

+
+

+  
+  
+
+
\ No newline at end of file
diff --git a/src/client/html/html_script_element.hpp b/src/client/html/html_script_element.hpp
index fc3fa095e..9f6ff3384 100644
--- a/src/client/html/html_script_element.hpp
+++ b/src/client/html/html_script_element.hpp
@@ -65,6 +65,14 @@ namespace endor
         src = value;
         setAttribute("src", value);
       }
+      inline void setText(const string &value)
+      {
+        setTextContent(value);
+      }
+      inline string getText() const
+      {
+        return textContent();
+      }
 
     protected:
       void createdCallback(bool from_scripting) override;
diff --git a/src/client/script_bindings/events/all_events.cpp b/src/client/script_bindings/events/all_events.cpp
index c3599b38a..e42bddff0 100644
--- a/src/client/script_bindings/events/all_events.cpp
+++ b/src/client/script_bindings/events/all_events.cpp
@@ -27,7 +27,7 @@ namespace endor
     void Initialize(Isolate *isolate)
     {
 #define XX(T) T::Initialize(isolate);
-      ALL_EVENT_CLASSES_MAP(XX)
+      ALL_EVENT_CLASSES_MAP(XX);
 #undef XX
     }
 
diff --git a/src/client/script_bindings/events/all_events.hpp b/src/client/script_bindings/events/all_events.hpp
index 24992c075..f7a8293dc 100644
--- a/src/client/script_bindings/events/all_events.hpp
+++ b/src/client/script_bindings/events/all_events.hpp
@@ -17,19 +17,19 @@ namespace endor
     namespace event_bindings
     {
       /**
-     * Initialize all event bindings with V8.
-     * 
-     * @param isolate The V8 isolate.
-     */
+       * Initialize all event bindings with V8.
+       * 
+       * @param isolate The V8 isolate.
+       */
       void Initialize(v8::Isolate *isolate);
 
       /**
-     * Create a new Event object in V8 from a native dom::Event.
-     * 
-     * @param isolate The V8 isolate.
-     * @param nativeEvent The native dom::Event to wrap.
-     * @returns A V8 Object representing the event.
-     */
+       * Create a new Event object in V8 from a native dom::Event.
+       * 
+       * @param isolate The V8 isolate.
+       * @param nativeEvent The native dom::Event to wrap.
+       * @returns A V8 Object representing the event.
+       */
       v8::Local MakeEvent(v8::Isolate *isolate, dom::Event *nativeEvent);
     }
   }
diff --git a/src/client/script_bindings/html/html_script_element.cpp b/src/client/script_bindings/html/html_script_element.cpp
index 08b120c1c..580b86e4f 100644
--- a/src/client/script_bindings/html/html_script_element.cpp
+++ b/src/client/script_bindings/html/html_script_element.cpp
@@ -159,7 +159,7 @@ namespace endor
       Isolate *isolate = info.GetIsolate();
       HandleScope scope(isolate);
       info.GetReturnValue().Set(String::NewFromUtf8(isolate,
-                                                    handle()->text.c_str())
+                                                    handle()->getText().c_str())
                                   .ToLocalChecked());
     }
 
@@ -176,7 +176,7 @@ namespace endor
       }
 
       String::Utf8Value text(isolate, value);
-      handle()->text = *text ? *text : "";
+      handle()->setText(*text ? *text : "");
     }
 
     void HTMLScriptElement::CharsetGetter(const PropertyCallbackInfo &info)