diff --git a/docs/patterns/javascript.rst b/docs/patterns/javascript.rst index c9c4b0c8b3..d58a3eb6b4 100644 --- a/docs/patterns/javascript.rst +++ b/docs/patterns/javascript.rst @@ -197,7 +197,7 @@ in the previous section. The following example shows how to replace a const geology_div = getElementById("geology-fact") fetch(geology_url) .then(response => response.text) - .then(text => geology_div.innerHtml = text) + .then(text => geology_div.innerHTML = text)