mirror of
https://github.com/servo/servo.git
synced 2025-07-24 15:50:21 +01:00
Auto merge of #13787 - lucasloisp:fix-12415/htmll-htmlo, r=emilio
Removed incorrectly exposed webidl interfaces <!-- Please describe your changes on the following line: --> I removed exposure in Window and Worker to some interfaces that was not specified in the specification. Specifically: - HTMLLinkElement.webidl - HTMLMapElement.webidl - HTMLMediaElement.webidl - HTMLMetaElement.webidl - HTMLMeterElement.webidl - HTMLModElement.webidl - HTMLObjectElement.webidl - HTMLOListElement.webidl - HTMLOptGroupElement.webidl - HTMLOptionElement.webidl - HTMLOutputElement.webidl --- <!-- 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 - [X] These changes partially fix #12415 (github issue number if applicable). <!-- Either: --> - [ ] There are tests for these changes OR - [X] These changes do not require tests because they do not add any feature <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. --> <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/13787) <!-- Reviewable:end -->
This commit is contained in:
commit
4af21e3ae1
12 changed files with 1 additions and 22 deletions
|
@ -3,7 +3,6 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#htmllinkelement
|
// https://html.spec.whatwg.org/multipage/#htmllinkelement
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface HTMLLinkElement : HTMLElement {
|
interface HTMLLinkElement : HTMLElement {
|
||||||
attribute DOMString href;
|
attribute DOMString href;
|
||||||
// attribute DOMString crossOrigin;
|
// attribute DOMString crossOrigin;
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#htmlmapelement
|
// https://html.spec.whatwg.org/multipage/#htmlmapelement
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface HTMLMapElement : HTMLElement {
|
interface HTMLMapElement : HTMLElement {
|
||||||
// attribute DOMString name;
|
// attribute DOMString name;
|
||||||
//readonly attribute HTMLCollection areas;
|
//readonly attribute HTMLCollection areas;
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#htmlmediaelement
|
// https://html.spec.whatwg.org/multipage/#htmlmediaelement
|
||||||
enum CanPlayTypeResult { "" /* empty string */, "maybe", "probably" };
|
enum CanPlayTypeResult { "" /* empty string */, "maybe", "probably" };
|
||||||
[Abstract, Exposed=(Window,Worker)]
|
[Abstract]
|
||||||
interface HTMLMediaElement : HTMLElement {
|
interface HTMLMediaElement : HTMLElement {
|
||||||
|
|
||||||
// error state
|
// error state
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#htmlmetaelement
|
// https://html.spec.whatwg.org/multipage/#htmlmetaelement
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface HTMLMetaElement : HTMLElement {
|
interface HTMLMetaElement : HTMLElement {
|
||||||
attribute DOMString name;
|
attribute DOMString name;
|
||||||
// attribute DOMString httpEquiv;
|
// attribute DOMString httpEquiv;
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#htmlmeterelement
|
// https://html.spec.whatwg.org/multipage/#htmlmeterelement
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface HTMLMeterElement : HTMLElement {
|
interface HTMLMeterElement : HTMLElement {
|
||||||
// attribute double value;
|
// attribute double value;
|
||||||
// attribute double min;
|
// attribute double min;
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#htmlmodelement
|
// https://html.spec.whatwg.org/multipage/#htmlmodelement
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface HTMLModElement : HTMLElement {
|
interface HTMLModElement : HTMLElement {
|
||||||
// attribute DOMString cite;
|
// attribute DOMString cite;
|
||||||
// attribute DOMString dateTime;
|
// attribute DOMString dateTime;
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#htmlolistelement
|
// https://html.spec.whatwg.org/multipage/#htmlolistelement
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface HTMLOListElement : HTMLElement {
|
interface HTMLOListElement : HTMLElement {
|
||||||
// attribute boolean reversed;
|
// attribute boolean reversed;
|
||||||
// attribute long start;
|
// attribute long start;
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#htmlobjectelement
|
// https://html.spec.whatwg.org/multipage/#htmlobjectelement
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface HTMLObjectElement : HTMLElement {
|
interface HTMLObjectElement : HTMLElement {
|
||||||
// attribute DOMString data;
|
// attribute DOMString data;
|
||||||
attribute DOMString type;
|
attribute DOMString type;
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#htmloptgroupelement
|
// https://html.spec.whatwg.org/multipage/#htmloptgroupelement
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface HTMLOptGroupElement : HTMLElement {
|
interface HTMLOptGroupElement : HTMLElement {
|
||||||
attribute boolean disabled;
|
attribute boolean disabled;
|
||||||
// attribute DOMString label;
|
// attribute DOMString label;
|
||||||
|
|
|
@ -6,7 +6,6 @@
|
||||||
//[NamedConstructor=Option(optional DOMString text = "", optional DOMString value,
|
//[NamedConstructor=Option(optional DOMString text = "", optional DOMString value,
|
||||||
// optional boolean defaultSelected = false,
|
// optional boolean defaultSelected = false,
|
||||||
// optional boolean selected = false)]
|
// optional boolean selected = false)]
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface HTMLOptionElement : HTMLElement {
|
interface HTMLOptionElement : HTMLElement {
|
||||||
attribute boolean disabled;
|
attribute boolean disabled;
|
||||||
readonly attribute HTMLFormElement? form;
|
readonly attribute HTMLFormElement? form;
|
||||||
|
|
|
@ -3,7 +3,6 @@
|
||||||
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
||||||
|
|
||||||
// https://html.spec.whatwg.org/multipage/#htmloutputelement
|
// https://html.spec.whatwg.org/multipage/#htmloutputelement
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface HTMLOutputElement : HTMLElement {
|
interface HTMLOutputElement : HTMLElement {
|
||||||
// [SameObject, PutForwards=value] readonly attribute DOMTokenList htmlFor;
|
// [SameObject, PutForwards=value] readonly attribute DOMTokenList htmlFor;
|
||||||
readonly attribute HTMLFormElement? form;
|
readonly attribute HTMLFormElement? form;
|
||||||
|
|
|
@ -47,18 +47,7 @@ test_interfaces([
|
||||||
"HTMLFormControlsCollection",
|
"HTMLFormControlsCollection",
|
||||||
"HTMLFormElement",
|
"HTMLFormElement",
|
||||||
"HTMLHeadElement",
|
"HTMLHeadElement",
|
||||||
"HTMLLinkElement",
|
|
||||||
"HTMLMapElement",
|
|
||||||
"HTMLMediaElement",
|
|
||||||
"HTMLMetaElement",
|
|
||||||
"HTMLMeterElement",
|
|
||||||
"HTMLModElement",
|
|
||||||
"HTMLObjectElement",
|
|
||||||
"HTMLOListElement",
|
|
||||||
"HTMLOptGroupElement",
|
|
||||||
"HTMLOptionElement",
|
|
||||||
"HTMLOptionsCollection",
|
"HTMLOptionsCollection",
|
||||||
"HTMLOutputElement",
|
|
||||||
"HTMLScriptElement",
|
"HTMLScriptElement",
|
||||||
"ImageData",
|
"ImageData",
|
||||||
"KeyboardEvent",
|
"KeyboardEvent",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue