Skip to content

Commit

Permalink
HTML: test dynamically updating the text content of a legend
Browse files Browse the repository at this point in the history
  • Loading branch information
zcorpan authored and annevk committed Aug 24, 2018
1 parent 823775f commit 9646393
Showing 1 changed file with 10 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<!DOCTYPE html>
<title>legend and dynamic update</title>
<link rel=fieldset-foo-ref.html>
<p>There should be a normal fieldset below with the legend "Foo".</p>
<fieldset>
<legend>F</legend>
</fieldset>
<script>
document.querySelector('legend').textContent += "oo";
</script>

0 comments on commit 9646393

Please sign in to comment.