mirror of
https://github.com/servo/servo.git
synced 2025-08-02 04:00:32 +01:00
Auto merge of #12617 - mskrzypkows:expose_interfaces, r=Ms2ger
Partial fix for #12415: expose interfaces of some HTML Elements <!-- Please describe your changes on the following line: --> Fix for interfaces: HTMLHeadingElement.webidl HTMLHRElement.webidl HTMLHtmlElement.webidl HTMLHyperlinkElementUtils.webidl HTMLIFrameElement.webidl HTMLImageElement.webidl HTMLInputElement.webidl HTMLLabelElement.webidl HTMLLegendElement.webidl HTMLLIElement.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 fix #12415 <!-- Either: --> - [X] There are tests for these changes OR - [ ] These changes do not require tests because _____ <!-- 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/12617) <!-- Reviewable:end -->
This commit is contained in:
commit
82f734b9a3
12 changed files with 2 additions and 25 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/#htmlhrelement
|
// https://html.spec.whatwg.org/multipage/#htmlhrelement
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface HTMLHRElement : HTMLElement {
|
interface HTMLHRElement : HTMLElement {
|
||||||
// also has obsolete members
|
// also has obsolete members
|
||||||
};
|
};
|
||||||
|
|
|
@ -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/#htmlheadingelement
|
// https://html.spec.whatwg.org/multipage/#htmlheadingelement
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface HTMLHeadingElement : HTMLElement {
|
interface HTMLHeadingElement : HTMLElement {
|
||||||
// also has obsolete members
|
// also has obsolete members
|
||||||
};
|
};
|
||||||
|
|
|
@ -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/#htmlhtmlelement
|
// https://html.spec.whatwg.org/multipage/#htmlhtmlelement
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface HTMLHtmlElement : HTMLElement {
|
interface HTMLHtmlElement : HTMLElement {
|
||||||
// also has obsolete members
|
// also has obsolete members
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* 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/#htmlhyperlinkelementutils
|
// https://html.spec.whatwg.org/multipage/#htmlhyperlinkelementutils
|
||||||
[NoInterfaceObject, Exposed=(Window,Worker)]
|
[NoInterfaceObject]
|
||||||
interface HTMLHyperlinkElementUtils {
|
interface HTMLHyperlinkElementUtils {
|
||||||
// stringifier attribute USVString href;
|
// stringifier attribute USVString href;
|
||||||
attribute USVString href;
|
attribute USVString href;
|
||||||
|
|
|
@ -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/#htmliframeelement
|
// https://html.spec.whatwg.org/multipage/#htmliframeelement
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface HTMLIFrameElement : HTMLElement {
|
interface HTMLIFrameElement : HTMLElement {
|
||||||
attribute DOMString src;
|
attribute DOMString src;
|
||||||
// attribute DOMString srcdoc;
|
// attribute DOMString srcdoc;
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
* 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/#htmlimageelement
|
// https://html.spec.whatwg.org/multipage/#htmlimageelement
|
||||||
[NamedConstructor=Image(optional unsigned long width, optional unsigned long height), Exposed=(Window,Worker)]
|
[NamedConstructor=Image(optional unsigned long width, optional unsigned long height)]
|
||||||
interface HTMLImageElement : HTMLElement {
|
interface HTMLImageElement : HTMLElement {
|
||||||
attribute DOMString alt;
|
attribute DOMString alt;
|
||||||
attribute DOMString src;
|
attribute DOMString src;
|
||||||
|
|
|
@ -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/#htmlinputelement
|
// https://html.spec.whatwg.org/multipage/#htmlinputelement
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface HTMLInputElement : HTMLElement {
|
interface HTMLInputElement : HTMLElement {
|
||||||
attribute DOMString accept;
|
attribute DOMString accept;
|
||||||
attribute DOMString alt;
|
attribute DOMString alt;
|
||||||
|
|
|
@ -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/#htmllielement
|
// https://html.spec.whatwg.org/multipage/#htmllielement
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface HTMLLIElement : HTMLElement {
|
interface HTMLLIElement : HTMLElement {
|
||||||
// attribute long value;
|
// attribute long value;
|
||||||
|
|
||||||
|
|
|
@ -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/#htmllabelelement
|
// https://html.spec.whatwg.org/multipage/#htmllabelelement
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface HTMLLabelElement : HTMLElement {
|
interface HTMLLabelElement : HTMLElement {
|
||||||
readonly attribute HTMLFormElement? form;
|
readonly attribute HTMLFormElement? form;
|
||||||
attribute DOMString htmlFor;
|
attribute DOMString htmlFor;
|
||||||
|
|
|
@ -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/#htmllegendelement
|
// https://html.spec.whatwg.org/multipage/#htmllegendelement
|
||||||
[Exposed=(Window,Worker)]
|
|
||||||
interface HTMLLegendElement : HTMLElement {
|
interface HTMLLegendElement : HTMLElement {
|
||||||
readonly attribute HTMLFormElement? form;
|
readonly attribute HTMLFormElement? form;
|
||||||
|
|
||||||
|
|
|
@ -1,5 +0,0 @@
|
||||||
[unexpected-self-properties.html]
|
|
||||||
type: testharness
|
|
||||||
[unexpected members/interface objects/constructors]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
|
@ -52,15 +52,6 @@ test_interfaces([
|
||||||
"HTMLFormControlsCollection",
|
"HTMLFormControlsCollection",
|
||||||
"HTMLFormElement",
|
"HTMLFormElement",
|
||||||
"HTMLHeadElement",
|
"HTMLHeadElement",
|
||||||
"HTMLHeadingElement",
|
|
||||||
"HTMLHRElement",
|
|
||||||
"HTMLHtmlElement",
|
|
||||||
"HTMLIFrameElement",
|
|
||||||
"HTMLImageElement",
|
|
||||||
"HTMLInputElement",
|
|
||||||
"HTMLLabelElement",
|
|
||||||
"HTMLLegendElement",
|
|
||||||
"HTMLLIElement",
|
|
||||||
"HTMLLinkElement",
|
"HTMLLinkElement",
|
||||||
"HTMLMapElement",
|
"HTMLMapElement",
|
||||||
"HTMLMediaElement",
|
"HTMLMediaElement",
|
||||||
|
@ -74,7 +65,6 @@ test_interfaces([
|
||||||
"HTMLOutputElement",
|
"HTMLOutputElement",
|
||||||
"HTMLScriptElement",
|
"HTMLScriptElement",
|
||||||
"ImageData",
|
"ImageData",
|
||||||
"Image",
|
|
||||||
"KeyboardEvent",
|
"KeyboardEvent",
|
||||||
"Location",
|
"Location",
|
||||||
"MediaError",
|
"MediaError",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue