1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:58:11 +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:
Linus Groh 2020-12-09 21:26:42 +00:00 committed by Andreas Kling
parent ec4980e875
commit c1dfb2d883
95 changed files with 98 additions and 95 deletions

View file

@ -288,8 +288,11 @@ static OwnPtr<Interface> parse_interface(StringView filename, const StringView&
consume_whitespace(); consume_whitespace();
if (lexer.consume_specific('}')) if (lexer.consume_specific('}')) {
consume_whitespace();
assert_specific(';');
break; break;
}
if (lexer.consume_specific('[')) { if (lexer.consume_specific('[')) {
extended_attributes = parse_extended_attributes(); extended_attributes = parse_extended_attributes();

View file

@ -6,4 +6,4 @@ interface CharacterData : Node {
readonly attribute Element? nextElementSibling; readonly attribute Element? nextElementSibling;
readonly attribute Element? previousElementSibling; readonly attribute Element? previousElementSibling;
} };

View file

@ -1,3 +1,3 @@
interface Comment : CharacterData { interface Comment : CharacterData {
} };

View file

@ -4,4 +4,4 @@ interface DOMImplementation {
boolean hasFeature(); boolean hasFeature();
} };

View file

@ -34,4 +34,4 @@ interface Document : Node {
attribute DOMString title; attribute DOMString title;
} };

View file

@ -8,4 +8,4 @@ interface DocumentFragment : Node {
Element? querySelector(DOMString selectors); Element? querySelector(DOMString selectors);
ArrayFromVector querySelectorAll(DOMString selectors); ArrayFromVector querySelectorAll(DOMString selectors);
} };

View file

@ -4,4 +4,4 @@ interface DocumentType : Node {
readonly attribute DOMString publicId; readonly attribute DOMString publicId;
readonly attribute DOMString systemId; readonly attribute DOMString systemId;
} };

View file

@ -17,4 +17,4 @@ interface Element : Node {
readonly attribute Element? nextElementSibling; readonly attribute Element? nextElementSibling;
readonly attribute Element? previousElementSibling; readonly attribute Element? previousElementSibling;
} };

View file

@ -20,4 +20,4 @@ interface Event {
readonly attribute boolean isTrusted; readonly attribute boolean isTrusted;
} };

View file

@ -3,4 +3,4 @@ interface EventTarget {
void addEventListener(DOMString type, EventListener? callback); void addEventListener(DOMString type, EventListener? callback);
void removeEventListener(DOMString type, EventListener? callback); void removeEventListener(DOMString type, EventListener? callback);
} };

View file

@ -12,5 +12,5 @@ interface Node : EventTarget {
Node appendChild(Node node); Node appendChild(Node node);
Node insertBefore(Node node, Node? child); Node insertBefore(Node node, Node? child);
} };

View file

@ -3,4 +3,4 @@ interface ShadowRoot : DocumentFragment {
readonly attribute DOMString mode; readonly attribute DOMString mode;
readonly attribute Element host; readonly attribute Element host;
} };

View file

@ -1,3 +1,3 @@
interface Text : CharacterData { interface Text : CharacterData {
} };

View file

@ -26,4 +26,4 @@ interface CanvasRenderingContext2D {
readonly attribute HTMLCanvasElement canvas; readonly attribute HTMLCanvasElement canvas;
} };

View file

@ -13,4 +13,4 @@ interface HTMLAnchorElement : HTMLElement {
[Reflect] attribute DOMString rev; [Reflect] attribute DOMString rev;
[Reflect] attribute DOMString shape; [Reflect] attribute DOMString shape;
} };

View file

@ -2,4 +2,4 @@ interface HTMLAreaElement : HTMLElement {
[Reflect=nohref] attribute boolean noHref; [Reflect=nohref] attribute boolean noHref;
} };

View file

@ -2,4 +2,4 @@ interface HTMLAudioElement : HTMLMediaElement {
} };

View file

@ -2,4 +2,4 @@ interface HTMLBRElement : HTMLElement {
[Reflect] attribute DOMString clear; [Reflect] attribute DOMString clear;
} };

View file

@ -2,4 +2,4 @@ interface HTMLBaseElement : HTMLElement {
[Reflect] attribute DOMString target; [Reflect] attribute DOMString target;
} };

View file

@ -7,4 +7,4 @@ interface HTMLBodyElement : HTMLElement {
[LegacyNullToEmptyString, Reflect=bgcolor] attribute DOMString bgColor; [LegacyNullToEmptyString, Reflect=bgcolor] attribute DOMString bgColor;
[Reflect] attribute DOMString background; [Reflect] attribute DOMString background;
} };

View file

@ -5,4 +5,4 @@ interface HTMLButtonElement : HTMLElement {
[Reflect] attribute DOMString name; [Reflect] attribute DOMString name;
[Reflect] attribute DOMString value; [Reflect] attribute DOMString value;
} };

View file

@ -4,4 +4,4 @@ interface HTMLCanvasElement : HTMLElement {
readonly attribute unsigned long width; readonly attribute unsigned long width;
readonly attribute unsigned long height; readonly attribute unsigned long height;
} };

View file

@ -2,4 +2,4 @@ interface HTMLDListElement : HTMLElement {
[Reflect] attribute boolean compact; [Reflect] attribute boolean compact;
} };

View file

@ -2,4 +2,4 @@ interface HTMLDataElement : HTMLElement {
[Reflect] attribute DOMString value; [Reflect] attribute DOMString value;
} };

View file

@ -2,4 +2,4 @@ interface HTMLDataListElement : HTMLElement {
} };

View file

@ -2,4 +2,4 @@ interface HTMLDetailsElement : HTMLElement {
[Reflect] attribute boolean open; [Reflect] attribute boolean open;
} };

View file

@ -2,4 +2,4 @@ interface HTMLDialogElement : HTMLElement {
[Reflect] attribute boolean open; [Reflect] attribute boolean open;
} };

View file

@ -2,4 +2,4 @@ interface HTMLDirectoryElement : HTMLElement {
[Reflect] attribute boolean compact; [Reflect] attribute boolean compact;
} };

View file

@ -2,4 +2,4 @@ interface HTMLDivElement : HTMLElement {
[Reflect] attribute DOMString align; [Reflect] attribute DOMString align;
} };

View file

@ -8,4 +8,4 @@ interface HTMLElement : Element {
attribute DOMString contentEditable; attribute DOMString contentEditable;
[LegacyNullToEmptyString] attribute DOMString innerText; [LegacyNullToEmptyString] attribute DOMString innerText;
} };

View file

@ -8,4 +8,4 @@ interface HTMLEmbedElement : HTMLElement {
[Reflect] attribute DOMString align; [Reflect] attribute DOMString align;
[Reflect] attribute DOMString name; [Reflect] attribute DOMString name;
} };

View file

@ -2,4 +2,4 @@ interface HTMLFieldSetElement : HTMLElement {
readonly attribute DOMString type; readonly attribute DOMString type;
} };

View file

@ -4,4 +4,4 @@ interface HTMLFontElement : HTMLElement {
[Reflect] attribute DOMString face; [Reflect] attribute DOMString face;
[Reflect] attribute DOMString size; [Reflect] attribute DOMString size;
} };

View file

@ -7,4 +7,4 @@ interface HTMLFormElement : HTMLElement {
void submit(); void submit();
} };

View file

@ -6,4 +6,4 @@ interface HTMLFrameElement : HTMLElement {
[Reflect=frameborder] attribute DOMString frameBorder; [Reflect=frameborder] attribute DOMString frameBorder;
[Reflect=longdesc] attribute DOMString longDesc; [Reflect=longdesc] attribute DOMString longDesc;
} };

View file

@ -3,4 +3,4 @@ interface HTMLFrameSetElement : HTMLElement {
[Reflect] attribute DOMString cols; [Reflect] attribute DOMString cols;
[Reflect] attribute DOMString rows; [Reflect] attribute DOMString rows;
} };

View file

@ -6,4 +6,4 @@ interface HTMLHRElement : HTMLElement {
[Reflect] attribute DOMString size; [Reflect] attribute DOMString size;
[Reflect] attribute DOMString width; [Reflect] attribute DOMString width;
} };

View file

@ -2,4 +2,4 @@ interface HTMLHeadElement : HTMLElement {
} };

View file

@ -2,4 +2,4 @@ interface HTMLHeadingElement : HTMLElement {
[Reflect] attribute DOMString align; [Reflect] attribute DOMString align;
} };

View file

@ -2,4 +2,4 @@ interface HTMLHtmlElement : HTMLElement {
[Reflect] attribute DOMString version; [Reflect] attribute DOMString version;
} };

View file

@ -16,4 +16,4 @@ interface HTMLIFrameElement : HTMLElement {
[LegacyNullToEmptyString, Reflect=marginheight] attribute DOMString marginHeight; [LegacyNullToEmptyString, Reflect=marginheight] attribute DOMString marginHeight;
[LegacyNullToEmptyString, Reflect=marginwidth] attribute DOMString marginWidth; [LegacyNullToEmptyString, Reflect=marginwidth] attribute DOMString marginWidth;
} };

View file

@ -11,4 +11,4 @@ interface HTMLImageElement : HTMLElement {
[Reflect] attribute DOMString align; [Reflect] attribute DOMString align;
[LegacyNullToEmptyString, Reflect] attribute DOMString border; [LegacyNullToEmptyString, Reflect] attribute DOMString border;
} };

View file

@ -24,4 +24,4 @@ interface HTMLInputElement : HTMLElement {
[Reflect] attribute DOMString align; [Reflect] attribute DOMString align;
[Reflect=usemap] attribute DOMString useMap; [Reflect=usemap] attribute DOMString useMap;
} };

View file

@ -2,4 +2,4 @@ interface HTMLLIElement : HTMLElement {
[Reflect] attribute DOMString type; [Reflect] attribute DOMString type;
} };

View file

@ -2,4 +2,4 @@ interface HTMLLabelElement : HTMLElement {
[Reflect=for] attribute DOMString htmlFor; [Reflect=for] attribute DOMString htmlFor;
} };

View file

@ -2,4 +2,4 @@ interface HTMLLegendElement : HTMLElement {
[Reflect] attribute DOMString align; [Reflect] attribute DOMString align;
} };

View file

@ -14,4 +14,4 @@ interface HTMLLinkElement : HTMLElement {
[Reflect] attribute DOMString rev; [Reflect] attribute DOMString rev;
[Reflect] attribute DOMString target; [Reflect] attribute DOMString target;
} };

View file

@ -2,4 +2,4 @@ interface HTMLMapElement : HTMLElement {
[Reflect] attribute DOMString name; [Reflect] attribute DOMString name;
} };

View file

@ -6,4 +6,4 @@ interface HTMLMarqueeElement : HTMLElement {
[Reflect] attribute DOMString height; [Reflect] attribute DOMString height;
[Reflect] attribute DOMString width; [Reflect] attribute DOMString width;
} };

View file

@ -7,4 +7,4 @@ interface HTMLMediaElement : HTMLElement {
[Reflect] attribute boolean controls; [Reflect] attribute boolean controls;
} };

View file

@ -2,4 +2,4 @@ interface HTMLMenuElement : HTMLElement {
[Reflect] attribute boolean compact; [Reflect] attribute boolean compact;
} };

View file

@ -6,4 +6,4 @@ interface HTMLMetaElement : HTMLElement {
[Reflect] attribute DOMString scheme; [Reflect] attribute DOMString scheme;
} };

View file

@ -2,4 +2,4 @@ interface HTMLMeterElement : HTMLElement {
} };

View file

@ -3,4 +3,4 @@ interface HTMLModElement : HTMLElement {
[Reflect] attribute DOMString cite; [Reflect] attribute DOMString cite;
[Reflect=datetime] attribute DOMString dateTime; [Reflect=datetime] attribute DOMString dateTime;
} };

View file

@ -5,4 +5,4 @@ interface HTMLOListElement : HTMLElement {
[Reflect] attribute boolean compact; [Reflect] attribute boolean compact;
} };

View file

@ -16,4 +16,4 @@ interface HTMLObjectElement : HTMLElement {
[LegacyNullToEmptyString, Reflect] attribute DOMString border; [LegacyNullToEmptyString, Reflect] attribute DOMString border;
} };

View file

@ -3,4 +3,4 @@ interface HTMLOptGroupElement : HTMLElement {
[Reflect] attribute boolean disabled; [Reflect] attribute boolean disabled;
[Reflect] attribute DOMString label; [Reflect] attribute DOMString label;
} };

View file

@ -3,4 +3,4 @@ interface HTMLOptionElement : HTMLElement {
[Reflect] attribute boolean disabled; [Reflect] attribute boolean disabled;
[Reflect=selected] attribute boolean defaultSelected; [Reflect=selected] attribute boolean defaultSelected;
} };

View file

@ -2,4 +2,4 @@ interface HTMLOutputElement : HTMLElement {
readonly attribute DOMString type; readonly attribute DOMString type;
} };

View file

@ -2,4 +2,4 @@ interface HTMLParagraphElement : HTMLElement {
[Reflect] attribute DOMString align; [Reflect] attribute DOMString align;
} };

View file

@ -6,4 +6,4 @@ interface HTMLParamElement : HTMLElement {
[Reflect] attribute DOMString type; [Reflect] attribute DOMString type;
[Reflect=valuetype] attribute DOMString valueType; [Reflect=valuetype] attribute DOMString valueType;
} };

View file

@ -2,4 +2,4 @@ interface HTMLPictureElement : HTMLElement {
} };

View file

@ -2,4 +2,4 @@ interface HTMLPreElement : HTMLElement {
} };

View file

@ -2,4 +2,4 @@ interface HTMLProgressElement : HTMLElement {
} };

View file

@ -2,4 +2,4 @@ interface HTMLQuoteElement : HTMLElement {
[Reflect] attribute DOMString cite; [Reflect] attribute DOMString cite;
} };

View file

@ -10,4 +10,4 @@ interface HTMLScriptElement : HTMLElement {
[Reflect] attribute DOMString event; [Reflect] attribute DOMString event;
[Reflect=for] attribute DOMString htmlFor; [Reflect=for] attribute DOMString htmlFor;
} };

View file

@ -4,4 +4,4 @@ interface HTMLSelectElement : HTMLElement {
[Reflect] attribute boolean multiple; [Reflect] attribute boolean multiple;
[Reflect] attribute boolean required; [Reflect] attribute boolean required;
} };

View file

@ -2,4 +2,4 @@ interface HTMLSlotElement : HTMLElement {
[Reflect] attribute DOMString name; [Reflect] attribute DOMString name;
} };

View file

@ -6,4 +6,4 @@ interface HTMLSourceElement : HTMLElement {
[Reflect] attribute DOMString sizes; [Reflect] attribute DOMString sizes;
[Reflect] attribute DOMString media; [Reflect] attribute DOMString media;
} };

View file

@ -2,4 +2,4 @@ interface HTMLSpanElement : HTMLElement {
} };

View file

@ -4,4 +4,4 @@ interface HTMLStyleElement : HTMLElement {
[Reflect] attribute DOMString type; [Reflect] attribute DOMString type;
} };

View file

@ -2,4 +2,4 @@ interface HTMLTableCaptionElement : HTMLElement {
[Reflect] attribute DOMString align; [Reflect] attribute DOMString align;
} };

View file

@ -15,4 +15,4 @@ interface HTMLTableCellElement : HTMLElement {
[LegacyNullToEmptyString, Reflect=bgcolor] attribute DOMString bgColor; [LegacyNullToEmptyString, Reflect=bgcolor] attribute DOMString bgColor;
} };

View file

@ -6,4 +6,4 @@ interface HTMLTableColElement : HTMLElement {
[Reflect=valign] attribute DOMString vAlign; [Reflect=valign] attribute DOMString vAlign;
[Reflect] attribute DOMString width; [Reflect] attribute DOMString width;
} };

View file

@ -11,4 +11,4 @@ interface HTMLTableElement : HTMLElement {
[LegacyNullToEmptyString, Reflect=cellpadding] attribute DOMString cellPadding; [LegacyNullToEmptyString, Reflect=cellpadding] attribute DOMString cellPadding;
[LegacyNullToEmptyString, Reflect=cellspacing] attribute DOMString cellSpacing; [LegacyNullToEmptyString, Reflect=cellspacing] attribute DOMString cellSpacing;
} };

View file

@ -7,4 +7,4 @@ interface HTMLTableRowElement : HTMLElement {
[LegacyNullToEmptyString, Reflect=bgcolor] attribute DOMString bgColor; [LegacyNullToEmptyString, Reflect=bgcolor] attribute DOMString bgColor;
} };

View file

@ -5,4 +5,4 @@ interface HTMLTableSectionElement : HTMLElement {
[Reflect=charoff] attribute DOMString chOff; [Reflect=charoff] attribute DOMString chOff;
[Reflect=valign] attribute DOMString vAlign; [Reflect=valign] attribute DOMString vAlign;
} };

View file

@ -2,4 +2,4 @@ interface HTMLTemplateElement : HTMLElement {
readonly attribute DocumentFragment content; readonly attribute DocumentFragment content;
} };

View file

@ -9,4 +9,4 @@ interface HTMLTextAreaElement : HTMLElement {
[Reflect=readonly] attribute boolean readOnly; [Reflect=readonly] attribute boolean readOnly;
[Reflect] attribute boolean required; [Reflect] attribute boolean required;
} };

View file

@ -2,4 +2,4 @@ interface HTMLTimeElement : HTMLElement {
[Reflect=datetime] attribute DOMString dateTime; [Reflect=datetime] attribute DOMString dateTime;
} };

View file

@ -2,4 +2,4 @@ interface HTMLTitleElement : HTMLElement {
} };

View file

@ -5,4 +5,4 @@ interface HTMLTrackElement : HTMLElement {
[Reflect] attribute DOMString label; [Reflect] attribute DOMString label;
[Reflect] attribute boolean default; [Reflect] attribute boolean default;
} };

View file

@ -3,4 +3,4 @@ interface HTMLUListElement : HTMLElement {
[Reflect] attribute boolean compact; [Reflect] attribute boolean compact;
[Reflect] attribute DOMString type; [Reflect] attribute DOMString type;
} };

View file

@ -2,4 +2,4 @@ interface HTMLUnknownElement : HTMLElement {
} };

View file

@ -3,4 +3,4 @@ interface HTMLVideoElement : HTMLMediaElement {
[Reflect] attribute DOMString poster; [Reflect] attribute DOMString poster;
[Reflect=playsinline] attribute boolean playsInline; [Reflect=playsinline] attribute boolean playsInline;
} };

View file

@ -4,4 +4,4 @@ interface ImageData {
readonly attribute unsigned long height; readonly attribute unsigned long height;
readonly attribute Uint8ClampedArray data; readonly attribute Uint8ClampedArray data;
} };

View file

@ -2,4 +2,4 @@ interface SubmitEvent : Event {
readonly attribute HTMLElement? submitter; readonly attribute HTMLElement? submitter;
} };

View file

@ -1,4 +1,4 @@
interface Performance : EventTarget { interface Performance : EventTarget {
double now(); double now();
readonly attribute double timeOrigin; readonly attribute double timeOrigin;
} };

View file

@ -1,3 +1,3 @@
interface SVGElement : Element { interface SVGElement : Element {
} };

View file

@ -1,3 +1,3 @@
interface SVGGeometryElement : SVGGraphicsElement { interface SVGGeometryElement : SVGGraphicsElement {
} };

View file

@ -1,3 +1,3 @@
interface SVGGraphicsElement : SVGElement { interface SVGGraphicsElement : SVGElement {
} };

View file

@ -1,3 +1,3 @@
interface SVGPathElement : SVGGeometryElement { interface SVGPathElement : SVGGeometryElement {
} };

View file

@ -1,3 +1,3 @@
interface SVGSVGElement : SVGGraphicsElement { interface SVGSVGElement : SVGGraphicsElement {
} };

View file

@ -3,4 +3,4 @@ interface MouseEvent : Event {
readonly attribute double offsetX; readonly attribute double offsetX;
readonly attribute double offsetY; readonly attribute double offsetY;
} };

View file

@ -1,3 +1,3 @@
interface UIEvent : Event { interface UIEvent : Event {
} };