[wpt-sync] Sync PR 17809 - Change test_designMode to check for empty string instead of br tag
Categories
(Testing :: geckodriver, task, P4)
Tracking
(firefox70 fixed)
| Tracking | Status | |
|---|---|---|
| firefox70 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 17809 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/17809
Details from upstream follow.
Julian Kung <juliankung@chromium.org> wrote:
Change test_designMode to check for empty string instead of br tag
test_designMode incorrectly checks that the innerHTML after an element_clear is a
<br>tag. Instead, the innerHTML property should be an empty string according to the W3C spec here: element clear.The clear should follow the "To clear a content editable element" subroutine, which states:
- Set element’s innerHTML IDL attribute to an empty string.
Nowhere in the spec for element clear is the insertion of a
<br>tag mentioned, so rather than accept both answers, to be spec compliant only an empty string should be accepted.
| Assignee | ||
Updated•6 years ago
|
| Assignee | ||
Comment 1•6 years ago
|
||
Updated•6 years ago
|
| Assignee | ||
Comment 2•6 years ago
|
||
| Assignee | ||
Comment 3•6 years ago
|
||
| Assignee | ||
Comment 4•6 years ago
|
||
Comment 5•6 years ago
|
||
James, any idea why the stability try push didn't fail even once for the expected perma failure?
Comment 6•6 years ago
|
||
Because the stability try push has the metadata updated from the initial try push, so the failure looks expected.
Comment 7•6 years ago
|
||
Ah ok, thanks. We actually have to get this PR backed-out again, so hopefully the downstream sync will still take a bit.
Comment 9•6 years ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/5da004d349e7
https://hg.mozilla.org/mozilla-central/rev/9bb24d7038e6
Description
•