Auto merge of #27805 - halvko:html_progress_element, r=jdm

Properly implement HTMLProgressElement DOM code

<!-- Please describe your changes on the following line: -->
The DOM code for HTMLProgressElement have been implemented, according to https://html.spec.whatwg.org/multipage/form-elements.html#the-progress-element . As mentioned in #23201, tests already exists for this element in tests/wpt/web-platform-tests/html/semantics/forms/the-progress-element/, which now passes (tested on Linux).

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [X] `./mach build -d` does not report any errors
- [X] `./mach test-tidy` does not report any errors
- [ ] These changes fix #___ (GitHub issue number if applicable)

<!-- Either: -->
- [X] There are tests for these changes OR
- [ ] These changes do not require tests because ___

<!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.-->

<!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
This commit is contained in:
bors-servo 2021-07-10 11:21:30 -04:00 committed by GitHub
commit d8081343e3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 80 additions and 54 deletions

View file

@ -1,13 +1 @@
[HTMLProgressElement.html]
[max on HTMLProgressElement must enqueue an attributeChanged reaction when replacing an existing attribute]
expected: FAIL
[max on HTMLProgressElement must enqueue an attributeChanged reaction when adding max content attribute]
expected: FAIL
[value on HTMLProgressElement must enqueue an attributeChanged reaction when adding value content attribute]
expected: FAIL
[value on HTMLProgressElement must enqueue an attributeChanged reaction when replacing an existing attribute]
expected: FAIL
[HTMLProgressElement.html]

View file

@ -2313,9 +2313,6 @@
[HTMLAudioElement interface: named constructor without 'new']
expected: FAIL
[HTMLProgressElement interface: document.createElement("progress") must inherit property "value" with the proper type]
expected: FAIL
[HTMLEmbedElement interface: attribute name]
expected: FAIL
@ -2343,12 +2340,6 @@
[HTMLInputElement interface: createInput("tel") must inherit property "align" with the proper type]
expected: FAIL
[HTMLProgressElement interface: document.createElement("progress") must inherit property "position" with the proper type]
expected: FAIL
[HTMLProgressElement interface: attribute position]
expected: FAIL
[HTMLAreaElement interface: attribute shape]
expected: FAIL
@ -2490,9 +2481,6 @@
[HTMLInputElement interface: createInput("month") must inherit property "autofocus" with the proper type]
expected: FAIL
[HTMLProgressElement interface: document.createElement("progress") must inherit property "max" with the proper type]
expected: FAIL
[HTMLMediaElement interface: document.createElement("audio") must inherit property "seekable" with the proper type]
expected: FAIL
@ -2727,9 +2715,6 @@
[HTMLInputElement interface: createInput("reset") must inherit property "useMap" with the proper type]
expected: FAIL
[HTMLProgressElement interface: attribute max]
expected: FAIL
[HTMLBRElement interface: attribute clear]
expected: FAIL
@ -3627,9 +3612,6 @@
[HTMLAreaElement interface: document.createElement("area") must inherit property "download" with the proper type]
expected: FAIL
[HTMLProgressElement interface: attribute value]
expected: FAIL
[HTMLTableSectionElement interface: document.createElement("tbody") must inherit property "chOff" with the proper type]
expected: FAIL

View file

@ -1,14 +1,2 @@
[progress-2.html]
type: testharness
[progress position equals -1]
expected: FAIL
[progress value equals 0]
expected: FAIL
[progress value equals .5]
expected: FAIL
[progress position equals 0]
expected: FAIL

View file

@ -1,8 +1,2 @@
[progress.window.html]
type: testharness
[If value > max, then current value = max]
expected: FAIL
[If value < max, then current value = value]
expected: FAIL