<!doctype html>
<title>fieldset accessibility test: multiple legends</title>
<link rel=help href=https://w3c.github.io/html-aam/#fieldset-element-accessible-name-computation>
<fieldset id=fieldset>
<div></div>
<legend>Foo</legend>
<legend>Bar</legend>
<input>
</fieldset>
<p>Expected accessible name for id=fieldset: "Foo"