mirror of
https://github.com/SerenityOS/serenity
synced 2024-10-04 23:19:27 +00:00
LibWeb: Expect IDL namespace to end with semicolon
From the Web IDL spec: https://heycam.github.io/webidl/#prod-Namespace Namespace :: namespace identifier { NamespaceMembers } ;
This commit is contained in:
parent
ec4980e875
commit
c1dfb2d883
|
@ -288,8 +288,11 @@ static OwnPtr<Interface> parse_interface(StringView filename, const StringView&
|
|||
|
||||
consume_whitespace();
|
||||
|
||||
if (lexer.consume_specific('}'))
|
||||
if (lexer.consume_specific('}')) {
|
||||
consume_whitespace();
|
||||
assert_specific(';');
|
||||
break;
|
||||
}
|
||||
|
||||
if (lexer.consume_specific('[')) {
|
||||
extended_attributes = parse_extended_attributes();
|
||||
|
|
|
@ -6,4 +6,4 @@ interface CharacterData : Node {
|
|||
readonly attribute Element? nextElementSibling;
|
||||
readonly attribute Element? previousElementSibling;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
interface Comment : CharacterData {
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -4,4 +4,4 @@ interface DOMImplementation {
|
|||
|
||||
boolean hasFeature();
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -34,4 +34,4 @@ interface Document : Node {
|
|||
|
||||
attribute DOMString title;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -8,4 +8,4 @@ interface DocumentFragment : Node {
|
|||
Element? querySelector(DOMString selectors);
|
||||
ArrayFromVector querySelectorAll(DOMString selectors);
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -4,4 +4,4 @@ interface DocumentType : Node {
|
|||
readonly attribute DOMString publicId;
|
||||
readonly attribute DOMString systemId;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -17,4 +17,4 @@ interface Element : Node {
|
|||
|
||||
readonly attribute Element? nextElementSibling;
|
||||
readonly attribute Element? previousElementSibling;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -20,4 +20,4 @@ interface Event {
|
|||
|
||||
readonly attribute boolean isTrusted;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -3,4 +3,4 @@ interface EventTarget {
|
|||
void addEventListener(DOMString type, EventListener? callback);
|
||||
void removeEventListener(DOMString type, EventListener? callback);
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -12,5 +12,5 @@ interface Node : EventTarget {
|
|||
Node appendChild(Node node);
|
||||
Node insertBefore(Node node, Node? child);
|
||||
|
||||
}
|
||||
};
|
||||
|
||||
|
|
|
@ -3,4 +3,4 @@ interface ShadowRoot : DocumentFragment {
|
|||
readonly attribute DOMString mode;
|
||||
readonly attribute Element host;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
interface Text : CharacterData {
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -26,4 +26,4 @@ interface CanvasRenderingContext2D {
|
|||
|
||||
readonly attribute HTMLCanvasElement canvas;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -13,4 +13,4 @@ interface HTMLAnchorElement : HTMLElement {
|
|||
[Reflect] attribute DOMString rev;
|
||||
[Reflect] attribute DOMString shape;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLAreaElement : HTMLElement {
|
|||
|
||||
[Reflect=nohref] attribute boolean noHref;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLAudioElement : HTMLMediaElement {
|
|||
|
||||
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLBRElement : HTMLElement {
|
|||
|
||||
[Reflect] attribute DOMString clear;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLBaseElement : HTMLElement {
|
|||
|
||||
[Reflect] attribute DOMString target;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -7,4 +7,4 @@ interface HTMLBodyElement : HTMLElement {
|
|||
[LegacyNullToEmptyString, Reflect=bgcolor] attribute DOMString bgColor;
|
||||
[Reflect] attribute DOMString background;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -5,4 +5,4 @@ interface HTMLButtonElement : HTMLElement {
|
|||
[Reflect] attribute DOMString name;
|
||||
[Reflect] attribute DOMString value;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -4,4 +4,4 @@ interface HTMLCanvasElement : HTMLElement {
|
|||
readonly attribute unsigned long width;
|
||||
readonly attribute unsigned long height;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLDListElement : HTMLElement {
|
|||
|
||||
[Reflect] attribute boolean compact;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLDataElement : HTMLElement {
|
|||
|
||||
[Reflect] attribute DOMString value;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLDataListElement : HTMLElement {
|
|||
|
||||
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLDetailsElement : HTMLElement {
|
|||
|
||||
[Reflect] attribute boolean open;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLDialogElement : HTMLElement {
|
|||
|
||||
[Reflect] attribute boolean open;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLDirectoryElement : HTMLElement {
|
|||
|
||||
[Reflect] attribute boolean compact;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLDivElement : HTMLElement {
|
|||
|
||||
[Reflect] attribute DOMString align;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -8,4 +8,4 @@ interface HTMLElement : Element {
|
|||
attribute DOMString contentEditable;
|
||||
|
||||
[LegacyNullToEmptyString] attribute DOMString innerText;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -8,4 +8,4 @@ interface HTMLEmbedElement : HTMLElement {
|
|||
[Reflect] attribute DOMString align;
|
||||
[Reflect] attribute DOMString name;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLFieldSetElement : HTMLElement {
|
|||
|
||||
readonly attribute DOMString type;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -4,4 +4,4 @@ interface HTMLFontElement : HTMLElement {
|
|||
[Reflect] attribute DOMString face;
|
||||
[Reflect] attribute DOMString size;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -7,4 +7,4 @@ interface HTMLFormElement : HTMLElement {
|
|||
|
||||
void submit();
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -6,4 +6,4 @@ interface HTMLFrameElement : HTMLElement {
|
|||
[Reflect=frameborder] attribute DOMString frameBorder;
|
||||
[Reflect=longdesc] attribute DOMString longDesc;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -3,4 +3,4 @@ interface HTMLFrameSetElement : HTMLElement {
|
|||
[Reflect] attribute DOMString cols;
|
||||
[Reflect] attribute DOMString rows;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -6,4 +6,4 @@ interface HTMLHRElement : HTMLElement {
|
|||
[Reflect] attribute DOMString size;
|
||||
[Reflect] attribute DOMString width;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLHeadElement : HTMLElement {
|
|||
|
||||
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLHeadingElement : HTMLElement {
|
|||
|
||||
[Reflect] attribute DOMString align;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLHtmlElement : HTMLElement {
|
|||
|
||||
[Reflect] attribute DOMString version;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -16,4 +16,4 @@ interface HTMLIFrameElement : HTMLElement {
|
|||
|
||||
[LegacyNullToEmptyString, Reflect=marginheight] attribute DOMString marginHeight;
|
||||
[LegacyNullToEmptyString, Reflect=marginwidth] attribute DOMString marginWidth;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -11,4 +11,4 @@ interface HTMLImageElement : HTMLElement {
|
|||
[Reflect] attribute DOMString align;
|
||||
[LegacyNullToEmptyString, Reflect] attribute DOMString border;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -24,4 +24,4 @@ interface HTMLInputElement : HTMLElement {
|
|||
[Reflect] attribute DOMString align;
|
||||
[Reflect=usemap] attribute DOMString useMap;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLLIElement : HTMLElement {
|
|||
|
||||
[Reflect] attribute DOMString type;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLLabelElement : HTMLElement {
|
|||
|
||||
[Reflect=for] attribute DOMString htmlFor;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLLegendElement : HTMLElement {
|
|||
|
||||
[Reflect] attribute DOMString align;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -14,4 +14,4 @@ interface HTMLLinkElement : HTMLElement {
|
|||
[Reflect] attribute DOMString rev;
|
||||
[Reflect] attribute DOMString target;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLMapElement : HTMLElement {
|
|||
|
||||
[Reflect] attribute DOMString name;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -6,4 +6,4 @@ interface HTMLMarqueeElement : HTMLElement {
|
|||
[Reflect] attribute DOMString height;
|
||||
[Reflect] attribute DOMString width;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -7,4 +7,4 @@ interface HTMLMediaElement : HTMLElement {
|
|||
|
||||
[Reflect] attribute boolean controls;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLMenuElement : HTMLElement {
|
|||
|
||||
[Reflect] attribute boolean compact;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -6,4 +6,4 @@ interface HTMLMetaElement : HTMLElement {
|
|||
|
||||
[Reflect] attribute DOMString scheme;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLMeterElement : HTMLElement {
|
|||
|
||||
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -3,4 +3,4 @@ interface HTMLModElement : HTMLElement {
|
|||
[Reflect] attribute DOMString cite;
|
||||
[Reflect=datetime] attribute DOMString dateTime;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -5,4 +5,4 @@ interface HTMLOListElement : HTMLElement {
|
|||
|
||||
[Reflect] attribute boolean compact;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -16,4 +16,4 @@ interface HTMLObjectElement : HTMLElement {
|
|||
|
||||
[LegacyNullToEmptyString, Reflect] attribute DOMString border;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -3,4 +3,4 @@ interface HTMLOptGroupElement : HTMLElement {
|
|||
[Reflect] attribute boolean disabled;
|
||||
[Reflect] attribute DOMString label;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -3,4 +3,4 @@ interface HTMLOptionElement : HTMLElement {
|
|||
[Reflect] attribute boolean disabled;
|
||||
[Reflect=selected] attribute boolean defaultSelected;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLOutputElement : HTMLElement {
|
|||
|
||||
readonly attribute DOMString type;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLParagraphElement : HTMLElement {
|
|||
|
||||
[Reflect] attribute DOMString align;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -6,4 +6,4 @@ interface HTMLParamElement : HTMLElement {
|
|||
[Reflect] attribute DOMString type;
|
||||
[Reflect=valuetype] attribute DOMString valueType;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLPictureElement : HTMLElement {
|
|||
|
||||
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLPreElement : HTMLElement {
|
|||
|
||||
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLProgressElement : HTMLElement {
|
|||
|
||||
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLQuoteElement : HTMLElement {
|
|||
|
||||
[Reflect] attribute DOMString cite;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -10,4 +10,4 @@ interface HTMLScriptElement : HTMLElement {
|
|||
[Reflect] attribute DOMString event;
|
||||
[Reflect=for] attribute DOMString htmlFor;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -4,4 +4,4 @@ interface HTMLSelectElement : HTMLElement {
|
|||
[Reflect] attribute boolean multiple;
|
||||
[Reflect] attribute boolean required;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLSlotElement : HTMLElement {
|
|||
|
||||
[Reflect] attribute DOMString name;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -6,4 +6,4 @@ interface HTMLSourceElement : HTMLElement {
|
|||
[Reflect] attribute DOMString sizes;
|
||||
[Reflect] attribute DOMString media;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLSpanElement : HTMLElement {
|
|||
|
||||
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -4,4 +4,4 @@ interface HTMLStyleElement : HTMLElement {
|
|||
|
||||
[Reflect] attribute DOMString type;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLTableCaptionElement : HTMLElement {
|
|||
|
||||
[Reflect] attribute DOMString align;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -15,4 +15,4 @@ interface HTMLTableCellElement : HTMLElement {
|
|||
|
||||
[LegacyNullToEmptyString, Reflect=bgcolor] attribute DOMString bgColor;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -6,4 +6,4 @@ interface HTMLTableColElement : HTMLElement {
|
|||
[Reflect=valign] attribute DOMString vAlign;
|
||||
[Reflect] attribute DOMString width;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -11,4 +11,4 @@ interface HTMLTableElement : HTMLElement {
|
|||
[LegacyNullToEmptyString, Reflect=cellpadding] attribute DOMString cellPadding;
|
||||
[LegacyNullToEmptyString, Reflect=cellspacing] attribute DOMString cellSpacing;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -7,4 +7,4 @@ interface HTMLTableRowElement : HTMLElement {
|
|||
|
||||
[LegacyNullToEmptyString, Reflect=bgcolor] attribute DOMString bgColor;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -5,4 +5,4 @@ interface HTMLTableSectionElement : HTMLElement {
|
|||
[Reflect=charoff] attribute DOMString chOff;
|
||||
[Reflect=valign] attribute DOMString vAlign;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLTemplateElement : HTMLElement {
|
|||
|
||||
readonly attribute DocumentFragment content;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -9,4 +9,4 @@ interface HTMLTextAreaElement : HTMLElement {
|
|||
[Reflect=readonly] attribute boolean readOnly;
|
||||
[Reflect] attribute boolean required;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLTimeElement : HTMLElement {
|
|||
|
||||
[Reflect=datetime] attribute DOMString dateTime;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLTitleElement : HTMLElement {
|
|||
|
||||
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -5,4 +5,4 @@ interface HTMLTrackElement : HTMLElement {
|
|||
[Reflect] attribute DOMString label;
|
||||
[Reflect] attribute boolean default;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -3,4 +3,4 @@ interface HTMLUListElement : HTMLElement {
|
|||
[Reflect] attribute boolean compact;
|
||||
[Reflect] attribute DOMString type;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface HTMLUnknownElement : HTMLElement {
|
|||
|
||||
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -3,4 +3,4 @@ interface HTMLVideoElement : HTMLMediaElement {
|
|||
[Reflect] attribute DOMString poster;
|
||||
[Reflect=playsinline] attribute boolean playsInline;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -4,4 +4,4 @@ interface ImageData {
|
|||
readonly attribute unsigned long height;
|
||||
readonly attribute Uint8ClampedArray data;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -2,4 +2,4 @@ interface SubmitEvent : Event {
|
|||
|
||||
readonly attribute HTMLElement? submitter;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
interface Performance : EventTarget {
|
||||
double now();
|
||||
readonly attribute double timeOrigin;
|
||||
}
|
||||
};
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
interface SVGElement : Element {
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
interface SVGGeometryElement : SVGGraphicsElement {
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
interface SVGGraphicsElement : SVGElement {
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
interface SVGPathElement : SVGGeometryElement {
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
interface SVGSVGElement : SVGGraphicsElement {
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -3,4 +3,4 @@ interface MouseEvent : Event {
|
|||
readonly attribute double offsetX;
|
||||
readonly attribute double offsetY;
|
||||
|
||||
}
|
||||
};
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
interface UIEvent : Event {
|
||||
|
||||
}
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue