Skip to content

Add HTMLOrSVGElement to HTML's IDL - #10110

Merged
sideshowbarker merged 1 commit into
masterfrom
annevk/htmlorsvgelement
Mar 23, 2018
Merged

sideshowbarker merged 1 commit into
masterfrom
annevk/htmlorsvgelement

Conversation

@annevk

@annevk annevk commented Mar 20, 2018 •

Copy link
Copy Markdown
Member

And align a couple other things while there.

Helps with whatwg/html#3543.

And align a couple other things while there.

Helps with whatwg/html#3543.
@ghost

ghost commented Mar 20, 2018 •

Copy link
Copy Markdown

Build ERRORED

Started: 2018-03-20 14:57:37
Finished: 2018-03-20 15:16:44

This report has been truncated because the number of unstable tests exceeds GitHub.com's character limit for comments (65536 characters).

Failing Jobs

  • firefox:nightly
  • chrome:dev

Unstable Browsers

Browser: "Firefox Nightly"

View in: WPT PR Status | TravisCI

@sideshowbarker
sideshowbarker merged commit 20d739e into master Mar 23, 2018
@sideshowbarker
sideshowbarker deleted the annevk/htmlorsvgelement branch March 23, 2018 10:24
annevk added a commit to whatwg/html that referenced this pull request Mar 23, 2018
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.
@foolip

foolip commented Mar 23, 2018

Copy link
Copy Markdown
Member

@Hexcles pointed out that it seems like this has broken a bunch of tests, like this:
https://chromium-review.googlesource.com/c/chromium/src/+/978021/4/third_party/WebKit/LayoutTests/external/wpt/IndexedDB/interfaces.any-expected.txt

So tests that include html.idl will now have to either define 'interface SVGElement {};' or import svg.idl.

@foolip

foolip commented Mar 23, 2018

Copy link
Copy Markdown
Member

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?

@Hexcles

Hexcles commented Mar 23, 2018

Copy link
Copy Markdown
Member

The full list of breakages found by Blink's CI (there might be more):

  • IndexedDB/interfaces.any.html
  • IndexedDB/interfaces.any.worker.html
  • cookie-store/idlharness.tentative.html
  • dom/interfaces.html
  • hr-time/idlharness.html
  • html/dom/interfaces.html
  • webaudio/idlharness.https.html

https://crrev.com/c/978021

@annevk

annevk commented Mar 23, 2018

Copy link
Copy Markdown
Member Author

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.

@annevk

annevk commented Mar 23, 2018

Copy link
Copy Markdown
Member Author

(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.)

@foolip

foolip commented Mar 23, 2018

Copy link
Copy Markdown
Member

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:

  • For each interface for which an instance can be found, write one or more factory methods for it.
  • All of the idlharness.js tests are automatically created, split either by spec with automatic dependency management, or split by interface, again with automatic dependency management.

@annevk

annevk commented Mar 23, 2018

Copy link
Copy Markdown
Member Author

Yeah, what do we want to do here meanwhile? Comment out the SVGElement line?

@foolip

foolip commented Mar 23, 2018

Copy link
Copy Markdown
Member

Yeah that'd be a good quickfix.

@dstorey

dstorey commented Mar 23, 2018

Copy link
Copy Markdown
Contributor

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)

@Hexcles

Hexcles commented Mar 23, 2018

Copy link
Copy Markdown
Member

Are we going to change html.idl (& svg.idl) today?

Otherwise, I'll send out a PR to batch add add_untested_idls to the affected tests.

@foolip

foolip commented Mar 23, 2018

Copy link
Copy Markdown
Member

@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.

@inexorabletash

Copy link
Copy Markdown
Contributor

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).

@lukebjerring

Copy link
Copy Markdown
Contributor

With #10100 landed, and not trying to script things, the fix for making tests robust is using the { only: ['MyInterface'] } filtering for pulling in IDL interfaces (and deps) from the IDL files. That way, as interfaces are moved, the number of breakages is limited/mitigated.

I'd love to say that only (and except) are documented @ http://web-platform-tests.org/writing-tests/idlharness.html

... but that would be a lie.

annevk added a commit that referenced this pull request Mar 23, 2018
@annevk

annevk commented Mar 23, 2018

Copy link
Copy Markdown
Member Author

@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 svg/interfaces.html hasn't really been converted to use mixins thus far and also duplicates some stuff (GlobalEventHandlers) so I'm not sure what the right strategy there would be.

chromium-wpt-export-bot pushed a commit that referenced this pull request Mar 23, 2018
html.idl changed in upstream
#10110
and imported in
https://crrev.com/c/978021

Bug: 825191
Change-Id: Ie1a04e730aabd50c615f1dab079f92eeaa22565a
chromium-wpt-export-bot pushed a commit that referenced this pull request Mar 23, 2018
html.idl changed in upstream
#10110
and imported in
https://crrev.com/c/978021

Bug: 825191
Change-Id: Ie1a04e730aabd50c615f1dab079f92eeaa22565a
aarongable pushed a commit to chromium/chromium that referenced this pull request Mar 23, 2018
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}
chromium-wpt-export-bot pushed a commit that referenced this pull request Mar 23, 2018
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}
chromium-wpt-export-bot pushed a commit that referenced this pull request Mar 23, 2018
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}
moz-v2v-gh pushed a commit to mozilla/gecko-dev that referenced this pull request Apr 15, 2018
…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
yutakahirano pushed a commit to yutakahirano/html that referenced this pull request Apr 26, 2018
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.
alice pushed a commit to alice/html that referenced this pull request Jan 8, 2019
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.
gecko-dev-updater pushed a commit to marco-c/gecko-dev-comments-removed that referenced this pull request Oct 2, 2019
…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
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified that referenced this pull request Oct 2, 2019
…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
gecko-dev-updater pushed a commit to marco-c/gecko-dev-wordified-and-comments-removed that referenced this pull request Oct 2, 2019
…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
jwidar pushed a commit to jwidar/LatencyZeroGithub that referenced this pull request Sep 16, 2025
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

8 participants