

suite('HTMLLegendElement', function() {

  test('form', function() {
    var form = document.createElement('form');
    var fieldSet = document.createElement('fieldset');
    var legend = document.createElement('legend');
    form.appendChild(fieldSet);
    fieldSet.appendChild(legend);
    assert.equal(legend.form, form);
  });

  test('instanceof', function() {
    assert.instanceOf(document.createElement('legend'), HTMLLegendElement);
  });

  test('constructor', function() {
    assert.equal(HTMLLegendElement,
                 document.createElement('legend').constructor);
  });


});
