Repository navigation
Add HTMLOrSVGElement to HTML's IDL - #10110
Conversation
And align a couple other things while there. Helps with whatwg/html#3543.
Build ERROREDStarted: 2018-03-20 14:57:37
Failing Jobs
Unstable BrowsersBrowser: "Firefox Nightly"View in: WPT PR Status | TravisCI |
This exposes dataset, tabIndex, focus(), and blur() on SVG elements. It also does away with NoncedElement. Tests: web-platform-tests/wpt#10110 and web-platform-tests/wpt#10149 (dataset tests for SVG already exist). Fixes #3471 and fixes w3c/svgwg#60.
|
@Hexcles pointed out that it seems like this has broken a bunch of tests, like this: So tests that include html.idl will now have to either define 'interface SVGElement {};' or import svg.idl. |
|
This kind of thing is going increasingly be a problem because the dependencies in spec IDL can be anything at all, and @lukebjerring is working on auto-updating from specs, and still the dependencies have to be managed manually in all of the tests including these files. Other than fixing the immediate problem, ideas for how this is not going to keep happening? |
|
The full list of breakages found by Blink's CI (there might be more):
https://crrev.com/c/978021 |
|
Apologies :/ One thing that would help is having more reviewers. If we can automate all things IDL that'd help too. It seems the only thing that's really manual is defining how to allocate objects. It seems there could be a better system for that. The tests could then be generated using global knowledge of all IDL. |
|
(We could also move SVGElement includes ... to svg.idl... Though that would presumably also require that setup in the specification as otherwise the automation might mess it up again.) |
|
The most ambitious idea that @lukebjerring, @mdittmer and others have discussed would be precisely to eliminate the "defining how to allocate objects" manual bit. It'd be something like:
|
|
Yeah, what do we want to do here meanwhile? Comment out the SVGElement line? |
|
Yeah that'd be a good quickfix. |
|
I feel it makes sense to add SVGElement includes to svg.idl and defined in the SVG spec. That was the change I was planning to make once the SVG PR to use the new mixin format is accepted. That way it is clearer in the SVG spec what members are included in the interface (specs are not really currently consistent if the implements/includes goes under the interface or the mixin. It is mostly the former except the DOM spec I think) |
|
Are we going to change html.idl (& svg.idl) today? Otherwise, I'll send out a PR to batch add |
|
@Hexcles, that would be more like a proper fix, so since the list of affected tests isn't that long, if you could try that, it'd be better I think. |
|
Aside: short of the "most ambitious" approach, a helper script that knows how to pull in HTML + DOM as untested and has declarations for their dangling dependencies (LinkStyle from CSSOM, etc) would simplify maintenance on many of those tests (e.g. IndexedDB, cookie-store, webaudio, hr-time). |
|
With #10100 landed, and not trying to script things, the fix for making tests robust is using the I'd love to say that ... but that would be a lie. |
Fixes regression caused by #10110.
|
@dstorey that seems reasonable, but then we should remove it from the HTML Standard and make it a note there. For now I created #10160 to just comment this out, since it seems |
html.idl changed in upstream #10110 and imported in https://crrev.com/c/978021 Bug: 825191 Change-Id: Ie1a04e730aabd50c615f1dab079f92eeaa22565a
html.idl changed in upstream #10110 and imported in https://crrev.com/c/978021 Bug: 825191 Change-Id: Ie1a04e730aabd50c615f1dab079f92eeaa22565a
html.idl changed in upstream web-platform-tests/wpt#10110 and imported in https://crrev.com/c/978021 Bug: 825191 Change-Id: Ie1a04e730aabd50c615f1dab079f92eeaa22565a Reviewed-on: https://chromium-review.googlesource.com/978508 Commit-Queue: Robert Ma <[email protected]> Reviewed-by: Joshua Bell <[email protected]> Cr-Commit-Position: refs/heads/master@{#545588}
html.idl changed in upstream #10110 and imported in https://crrev.com/c/978021 Bug: 825191 Change-Id: Ie1a04e730aabd50c615f1dab079f92eeaa22565a Reviewed-on: https://chromium-review.googlesource.com/978508 Commit-Queue: Robert Ma <[email protected]> Reviewed-by: Joshua Bell <[email protected]> Cr-Commit-Position: refs/heads/master@{#545588}
html.idl changed in upstream #10110 and imported in https://crrev.com/c/978021 Bug: 825191 Change-Id: Ie1a04e730aabd50c615f1dab079f92eeaa22565a Reviewed-on: https://chromium-review.googlesource.com/978508 Commit-Queue: Robert Ma <[email protected]> Reviewed-by: Joshua Bell <[email protected]> Cr-Commit-Position: refs/heads/master@{#545588}
…es SVGElement, a=testonly Automatic update from web-platform-testsFix some IDL tests after html.idl includes SVGElement html.idl changed in upstream web-platform-tests/wpt#10110 and imported in https://crrev.com/c/978021 Bug: 825191 Change-Id: Ie1a04e730aabd50c615f1dab079f92eeaa22565a Reviewed-on: https://chromium-review.googlesource.com/978508 Commit-Queue: Robert Ma <[email protected]> Reviewed-by: Joshua Bell <[email protected]> Cr-Commit-Position: refs/heads/master@{#545588} wpt-commits: d04a8fc02b85bd32799691759c8c05ead07cd939 wpt-pr: 10163 wpt-commits: d04a8fc02b85bd32799691759c8c05ead07cd939 wpt-pr: 10163
This exposes dataset, tabIndex, focus(), and blur() on SVG elements. It also does away with NoncedElement. Tests: web-platform-tests/wpt#10110 and web-platform-tests/wpt#10149 (dataset tests for SVG already exist). Fixes whatwg#3471 and fixes w3c/svgwg#60.
This exposes dataset, tabIndex, focus(), and blur() on SVG elements. It also does away with NoncedElement. Tests: web-platform-tests/wpt#10110 and web-platform-tests/wpt#10149 (dataset tests for SVG already exist). Fixes whatwg#3471 and fixes w3c/svgwg#60.
…es SVGElement, a=testonly Automatic update from web-platform-testsFix some IDL tests after html.idl includes SVGElement html.idl changed in upstream web-platform-tests/wpt#10110 and imported in https://crrev.com/c/978021 Bug: 825191 Change-Id: Ie1a04e730aabd50c615f1dab079f92eeaa22565a Reviewed-on: https://chromium-review.googlesource.com/978508 Commit-Queue: Robert Ma <robertmachromium.org> Reviewed-by: Joshua Bell <jsbellchromium.org> Cr-Commit-Position: refs/heads/master{#545588} wpt-commits: d04a8fc02b85bd32799691759c8c05ead07cd939 wpt-pr: 10163 wpt-commits: d04a8fc02b85bd32799691759c8c05ead07cd939 wpt-pr: 10163 UltraBlame original commit: dfa12b7487ef92a3edf36c7bfc823f651b1c9b77
…es SVGElement, a=testonly Automatic update from web-platform-testsFix some IDL tests after html.idl includes SVGElement html.idl changed in upstream web-platform-tests/wpt#10110 and imported in https://crrev.com/c/978021 Bug: 825191 Change-Id: Ie1a04e730aabd50c615f1dab079f92eeaa22565a Reviewed-on: https://chromium-review.googlesource.com/978508 Commit-Queue: Robert Ma <robertmachromium.org> Reviewed-by: Joshua Bell <jsbellchromium.org> Cr-Commit-Position: refs/heads/master{#545588} wpt-commits: d04a8fc02b85bd32799691759c8c05ead07cd939 wpt-pr: 10163 wpt-commits: d04a8fc02b85bd32799691759c8c05ead07cd939 wpt-pr: 10163 UltraBlame original commit: dfa12b7487ef92a3edf36c7bfc823f651b1c9b77
…es SVGElement, a=testonly Automatic update from web-platform-testsFix some IDL tests after html.idl includes SVGElement html.idl changed in upstream web-platform-tests/wpt#10110 and imported in https://crrev.com/c/978021 Bug: 825191 Change-Id: Ie1a04e730aabd50c615f1dab079f92eeaa22565a Reviewed-on: https://chromium-review.googlesource.com/978508 Commit-Queue: Robert Ma <robertmachromium.org> Reviewed-by: Joshua Bell <jsbellchromium.org> Cr-Commit-Position: refs/heads/master{#545588} wpt-commits: d04a8fc02b85bd32799691759c8c05ead07cd939 wpt-pr: 10163 wpt-commits: d04a8fc02b85bd32799691759c8c05ead07cd939 wpt-pr: 10163 UltraBlame original commit: dfa12b7487ef92a3edf36c7bfc823f651b1c9b77
…es SVGElement, a=testonly Automatic update from web-platform-testsFix some IDL tests after html.idl includes SVGElement html.idl changed in upstream web-platform-tests/wpt#10110 and imported in https://crrev.com/c/978021 Bug: 825191 Change-Id: Ie1a04e730aabd50c615f1dab079f92eeaa22565a Reviewed-on: https://chromium-review.googlesource.com/978508 Commit-Queue: Robert Ma <[email protected]> Reviewed-by: Joshua Bell <[email protected]> Cr-Commit-Position: refs/heads/master@{#545588} wpt-commits: d04a8fc02b85bd32799691759c8c05ead07cd939 wpt-pr: 10163 wpt-commits: d04a8fc02b85bd32799691759c8c05ead07cd939 wpt-pr: 10163
And align a couple other things while there.
Helps with whatwg/html#3543.