Explorar o código

Add datetime attribute to time element (#590)

Daniel Olano %!s(int64=2) %!d(string=hai) anos
pai
achega
b51abd1a9c
Modificáronse 1 ficheiros con 3 adicións e 1 borrados
  1. 3 1
      packages/html/src/elements.rs

+ 3 - 1
packages/html/src/elements.rs

@@ -504,7 +504,9 @@ builder_constructors! {
     /// Build a
     /// [`<time>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/time)
     /// element.
-    time {};
+    time {
+        datetime: Datetime,
+    };
 
     /// Build a
     /// [`<u>`](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/u)