Sha256: e5eabe481e6d0aba26d910798601bfaee064ab96dcd293d69a236cf04f6a9f83

Contents?: true

Size: 656 Bytes

Versions: 3

Compression:

Stored size: 656 Bytes

Contents

module("insertion");

test("inserting SELECT elements with multiple='multiple' should not raise an error", function() {
  expect(3);
  var div = document.createElement('div');
  var html = "<select multiple='multiple'><option value='wheels'>Wheels within Wheels</option></select>";
  ok(div.innerHTML = html, html);  
  var select = document.createElement('select');
  var x;
  try {
    select.type = "foo";
  }catch(e){
    x = e;
  }
  ok(x !== void(0), "should not allow setting type");
  x = void(0);
  try {
    select.setAttribute("type","foo");
  }catch(e){
    x = e;
  }
  ok(x !== void(0), "should not allow setting type via setAttribute");
});

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
envjs19-0.3.8.20101029121421 test/unit/insertion.js
envjs-0.3.8 test/unit/insertion.js
envjs-0.3.7 test/unit/insertion.js