Przeglądaj źródła

fix(skills): use [DATE] placeholder in demo-movie end card

<date> inside the innerHTML string literal parses as an empty HTML
element in the browser rather than literal text if left unsubstituted.
Use the house bracket convention instead.
Jesse Vincent 2 miesięcy temu
rodzic
commit
a7cb9d495c

+ 1 - 1
skills/agentic-end-to-end-testing/rendering-a-demo-movie.md

@@ -54,7 +54,7 @@ free.
   if (q.get("mode") === "title") {
     document.body.innerHTML = '<div class="title"><h1>App Name</h1><p>one-line tagline</p></div>';
   } else if (q.get("mode") === "end") {
-    document.body.innerHTML = '<div class="title dark"><p>deployed to production · <date></p><p class="accent">App Name — org</p></div>';
+    document.body.innerHTML = '<div class="title dark"><p>deployed to production · [DATE]</p><p class="accent">App Name — org</p></div>';
   } else {
     document.body.innerHTML = '<img class="frame" src="' + q.get("img") + '"><div class="bar">' + q.get("cap") + '</div>';
   }