Open Bug 1529840 Opened 6 years ago Updated 3 years ago

Add some web platform tests for readyState on data documents

Categories

(Core :: DOM: Core & HTML, enhancement, P3)

enhancement

Tracking

()

Tracking Status
firefox67 --- affected

People

(Reporter: bzbarsky, Unassigned)

Details

Simple testcase:

  alert(new DOMParser().parseFromString("aaa", "text/html").readyState);

that alerts "uninitialized" on today's tip, but should probably be "complete" per spec.

Bug 1489308 might fix our behavior here, but we have no existing tests for this, apparently.

Another relevant testcase:

  var doc = new DOMParser().parseFromString("aaa", "text/html");
  doc.open();
  doc.close();
  alert(doc.readyState);

I'm pretty sure bug 1489308 fixes this one and not the one in comment 0.

Priority: -- → P3
Component: DOM → DOM: Core & HTML
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.