Previously, a new <title> tag containing the device name was just appended to <head> instead of overwriting the existing one.
Now, if an element with the given ID already exists in the document, its contents and attributes are overwritten and it is moved to the specified parent.
Additionally, some other improvements (rather fixes):
The submit button does not need a <label>, so it is a <button type="submit"> now to not fall into the default <input> handling.
<input type="text">s now have box-sizing: border-box; to not exceed the form width.
After saving submitted data, ESP.restart() is called instead of esp_restart(), like elsewhere too.
Previously, a new
<title>
tag containing the device name was just appended to<head>
instead of overwriting the existing one.Now, if an element with the given ID already exists in the document, its contents and attributes are overwritten and it is moved to the specified parent.
Additionally, some other improvements (rather fixes):
<label>
, so it is a<button type="submit">
now to not fall into the default<input>
handling.<input type="text">
s now havebox-sizing: border-box;
to not exceed the form width.ESP.restart()
is called instead ofesp_restart()
, like elsewhere too.