Source code
Revision control
Copy as Markdown
Other Tools
Test Info:
- This WPT test may be referenced by the following Test IDs:
- /html/editing/the-hidden-attribute/hidden-1c.html - WPT Dashboard Interop Dashboard
<!doctype html>
<title>The hidden attribute</title>
<link rel=match href=hidden-1-ref.html>
<link rel=author title=Ms2ger href=mailto:Ms2ger@gmail.com>
<p hidden>This line should be visible.
<p>This line should not be visible.
<script>
document.getElementsByTagName("p")[0].hidden = false;
document.getElementsByTagName("p")[1].hidden = true;
</script>