Last active
September 6, 2019 09:21
-
-
Save loreanvictor/4a609ecb73b27875a9e38f2e8f57739c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// NOTICE: these two declaration modules should go into separate typing files, but since the purpose of this gist | |
// is elaboration, I put them in the same place. | |
// | |
// NOTICE: the attributes are intentionally not typed strictly, allowing any custom tsx renderer to work with its own | |
// objects (imagine passing functions or `Observable`s to attributes). | |
// | |
declare module HTML { | |
interface Attributes { | |
/**Specifies a shortcut key to activate/focus an element*/ | |
accesskey?: any; | |
/**Specifies one or more classnames for an element (refers to a class in a style sheet) */ | |
class?: any; | |
/**Specifies whether the content of an element is editable or not */ | |
contenteditable?: any; | |
/**Used to store custom data private to the page or application */ | |
'data-'?: {[key: string]: any}; | |
/**Specifies the text direction for the content in an element */ | |
dir?: any; | |
/**Specifies whether an element is draggable or not */ | |
draggable?: any; | |
/**Specifies whether the dragged data is copied, moved, or linked, when dropped */ | |
dropzone?: any; | |
/**Specifies that an element is not yet, or is no longer, relevant */ | |
hidden?: any; | |
/**Specifies a unique id for an element */ | |
id?: any; | |
/**Specifies the language of the element's content */ | |
lang?: any; | |
/**Specifies whether the element is to have its spelling and grammar checked or not */ | |
spellcheck?: any; | |
/**Specifies an inline CSS style for an element */ | |
style?: any; | |
/**Specifies the tabbing order of an element */ | |
tabindex?: any; | |
/**Specifies extra information about an element */ | |
title?: any; | |
/**Specifies whether the content of an element should be translated or not */ | |
translate?: any; | |
/**Script to be run when the element loses focus */ | |
onblur?: any; | |
/**Script to be run when the value of the element is changed */ | |
onchange?: any; | |
/**Script to be run when the element is being clicked */ | |
onclick?: any; | |
/**Script to be run when a context menu is triggered */ | |
oncontextmenu?: any; | |
/**Script to be run when the content of the element is being copied */ | |
oncopy?: any; | |
/**Script to be run when the content of the element is being cut */ | |
oncut?: any; | |
/**Script to be run when the element is being double-clicked */ | |
ondblclick?: any; | |
/**Script to be run when the element is being dragged */ | |
ondrag?: any; | |
/**Script to be run at the end of a drag operation */ | |
ondragend?: any; | |
/**Script to be run when an element has been dragged to a valid drop target */ | |
ondragenter?: any; | |
/**Script to be run when an element leaves a valid drop target */ | |
ondragleave?: any; | |
/**Script to be run when an element is being dragged over a valid drop target */ | |
ondragover?: any; | |
/**Script to be run at the start of a drag operation */ | |
ondragstart?: any; | |
/**Script to be run when dragged element is being dropped */ | |
ondrop?: any; | |
/**Script to be run when the element gets focus */ | |
onfocus?: any; | |
/**Script to be run when the element gets user input */ | |
oninput?: any; | |
/**Script to be run when the element is invalid */ | |
oninvalid?: any; | |
/**Script to be run when a user is pressing a key */ | |
onkeydown?: any; | |
/**Script to be run when a user presses a key */ | |
onkeypress?: any; | |
/**Script to be run when a user releases a key */ | |
onkeyup?: any; | |
/**Script to be run when a mouse button is pressed down on an element */ | |
onmousedown?: any; | |
/**Script to be run as long as the mouse pointer is moving over an element */ | |
onmousemove?: any; | |
/**Script to be run when a mouse pointer moves out of an element */ | |
onmouseout?: any; | |
/**Script to be run when a mouse pointer moves over an element */ | |
onmouseover?: any; | |
/**Script to be run when a mouse button is released over an element */ | |
onmouseup?: any; | |
/**Script to be run when a mouse wheel is being scrolled over an element */ | |
onmousewheel?: any; | |
/**Script to be run when the user pastes some content in an element */ | |
onpaste?: any; | |
/**Script to be run when an element's scrollbar is being scrolled */ | |
onscroll?: any; | |
/**Script to be run when the element gets selected */ | |
onselect?: any; | |
/**Script to be run when the mouse wheel rolls up or down over an element */ | |
onwheel?: any; | |
} | |
interface ImgAttributes extends Attributes { | |
/**Specifies an alternate text when the original element fails to display */ | |
alt?: any; | |
/**Specifies the height of the element */ | |
height?: any; | |
/**Specifies an image as a server-side image-map */ | |
ismap?: any; | |
/**Script to be run on abort */ | |
onabort?: any; | |
/**Script to be run when an error occurs */ | |
onerror?: any; | |
/**Script to be run when the element is finished loading */ | |
onload?: any; | |
/**Specifies the size of the linked resource */ | |
sizes?: any; | |
/**Specifies the URL of the media file */ | |
src?: any; | |
/**Specifies the URL of the image to use in different situations */ | |
srcset?: any; | |
/**Specifies an image as a client-side image-map */ | |
usemap?: any; | |
/**Specifies the width of the element */ | |
width?: any; | |
} | |
interface AAttributes extends Attributes { | |
/**Specifies that the target will be downloaded when a user clicks on the hyperlink */ | |
download?: any; | |
/**Specifies the URL of the page the link goes to */ | |
href?: any; | |
/**Specifies the language of the linked document */ | |
hreflang?: any; | |
/**Specifies what media/device the linked document is optimized for */ | |
media?: any; | |
/**Specifies the relationship between the current document and the linked document */ | |
rel?: any; | |
/**Specifies the target for where to open the linked document or where to submit the form */ | |
target?: any; | |
/**Specifies the type of element */ | |
type?: any; | |
} | |
interface InputAttributes extends Attributes { | |
/** Specifies the types of files that the server accepts (only for type="file") */ | |
accept?: any; | |
/**Specifies an alternate text when the original element fails to display */ | |
alt?: any; | |
/**Specifies whether the <form> or the <input> element should have autocomplete enabled */ | |
autocomplete?: any; | |
/**Specifies that the element should automatically get focus when the page loads */ | |
autofocus?: any; | |
/**Specifies that an <input> element should be pre-selected when the page loads (for type="checkbox" or type="radio") */ | |
checked?: any; | |
/**Specifies that the text direction will be submitted */ | |
dirname?: any; | |
/**Specifies that the specified element/group of elements should be disabled */ | |
disabled?: any; | |
/**Specifies the name of the form the element belongs to */ | |
form?: any; | |
/**Specifies where to send the form-data when a form is submitted. Only for type="submit" */ | |
formaction?: any; | |
/**Specifies the height of the element */ | |
height?: any; | |
/**Refers to a <datalist> element that contains pre-defined options for an <input> element */ | |
list?: any; | |
/**Specifies the maximum value */ | |
max?: any; | |
/**Specifies the maximum number of characters allowed in an element */ | |
maxlength?: any; | |
/**Specifies a minimum value */ | |
min?: any; | |
/**Specifies that a user can enter more than one value */ | |
multiple?: any; | |
/**Specifies the name of the element */ | |
name?: any; | |
/**Script to be run when the element is finished loading */ | |
onload?: any; | |
/**Script to be run when the user writes something in a search field (for <input="search">) */ | |
onsearch?: any; | |
/**Specifies a regular expression that an <input> element's value is checked against */ | |
pattern?: any; | |
/**Specifies a short hint that describes the expected value of the element */ | |
placeholder?: any; | |
/**Specifies that the element is read-only */ | |
readonly?: any; | |
/**Specifies that the element must be filled out before submitting the form */ | |
required?: any; | |
/**Specifies the width, in characters */ | |
size?: any; | |
/**Specifies the URL of the media file */ | |
src?: any; | |
/**Specifies the legal number intervals for an input field */ | |
step?: any; | |
/**Specifies the type of element */ | |
type?: any; | |
/**Specifies the value of the element */ | |
value?: any; | |
/**Specifies the width of the element */ | |
width?: any; | |
} | |
interface ButtonAttributes extends Attributes { | |
/**Specifies that the element should automatically get focus when the page loads */ | |
autofocus?: any; | |
/**Specifies that the specified element/group of elements should be disabled */ | |
disabled?: any; | |
/**Specifies the name of the form the element belongs to */ | |
form?: any; | |
/**Specifies where to send the form-data when a form is submitted. Only for type="submit" */ | |
formaction?: any; | |
/**Specifies the name of the element */ | |
name?: any; | |
/**Specifies the type of element */ | |
type?: any; | |
/**Specifies the value of the element */ | |
value?: any; | |
} | |
interface SelectAttributes extends Attributes { | |
/**Specifies that the element should automatically get focus when the page loads */ | |
autofocus?: any; | |
/**Specifies that the specified element/group of elements should be disabled */ | |
disabled?: any; | |
/**Specifies the name of the form the element belongs to */ | |
form?: any; | |
/**Specifies that a user can enter more than one value */ | |
multiple?: any; | |
/**Specifies the name of the element */ | |
name?: any; | |
/**Specifies that the element must be filled out before submitting the form */ | |
required?: any; | |
/**Specifies the number of visible options */ | |
size?: any; | |
} | |
interface OptionAttributes extends Attributes { | |
/**Specifies that the specified element/group of elements should be disabled */ | |
disabled?: any; | |
/**Specifies the title of the text track */ | |
label?: any; | |
/**Specifies that an option should be pre-selected when the page loads */ | |
selected?: any; | |
/**Specifies the value of the element */ | |
value?: any; | |
} | |
interface OptGroupAttributes extends Attributes { | |
/**Specifies that the specified element/group of elements should be disabled */ | |
disabled?: any; | |
/**Specifies the title of the text track */ | |
label?: any; | |
} | |
interface TextAreaAttributes extends Attributes { | |
/**Specifies that the element should automatically get focus when the page loads */ | |
autofocus?: any; | |
/**Specifies the visible width of a text area */ | |
cols?: any; | |
/**Specifies that the text direction will be submitted */ | |
dirname?: any; | |
/**Specifies that the specified element/group of elements should be disabled */ | |
disabled?: any; | |
/**Specifies the name of the form the element belongs to */ | |
form?: any; | |
/**Specifies the maximum number of characters allowed in an element */ | |
maxlength?: any; | |
/**Specifies the name of the element */ | |
name?: any; | |
/**Specifies a short hint that describes the expected value of the element */ | |
placeholder?: any; | |
/**Specifies that the element is read-only */ | |
readonly?: any; | |
/**Specifies that the element must be filled out before submitting the form */ | |
required?: any; | |
/**Specifies the visible number of lines in a text area */ | |
rows?: any; | |
/**Specifies how the text in a text area is to be wrapped when submitted in a form */ | |
wrap?: any; | |
} | |
interface LabelAttributes extends Attributes { | |
/**Specifies which form element(s) a label/calculation is bound to */ | |
for?: any; | |
/**Specifies the name of the form the element belongs to */ | |
form?: any; | |
} | |
interface FieldsetAttributes extends Attributes { | |
/**Specifies that the specified element/group of elements should be disabled */ | |
disabled?: any; | |
/**Specifies the name of the form the element belongs to */ | |
form?: any; | |
/**Specifies the name of the element */ | |
name?: any; | |
} | |
interface FormAttributes extends Attributes { | |
/**Specifies the character encodings that are to be used for the form submission*/ | |
'accept-charset'?: any; | |
/**Specifies where to send the form-data when a form is submitted */ | |
action?: any; | |
/**Specifies whether the <form> or the <input> element should have autocomplete enabled */ | |
autocomplete?: any; | |
/**Specifies how the form-data should be encoded when submitting it to the server (only for method="post") */ | |
enctype?: any; | |
/**Specifies the HTTP method to use when sending form-data */ | |
method?: any; | |
/**Specifies the name of the element */ | |
name?: any; | |
/**Specifies that the form should not be validated when submitted */ | |
novalidate?: any; | |
/**Script to be run when a reset button in a form is clicked. */ | |
onreset?: any; | |
/**Script to be run when a form is submitted */ | |
onsubmit?: any; | |
/**Specifies the target for where to open the linked document or where to submit the form */ | |
target?: any; | |
} | |
interface OutputAttributes extends Attributes { | |
/**Specifies which form element(s) a label/calculation is bound to */ | |
for?: any; | |
/**Specifies the name of the form the element belongs to */ | |
form?: any; | |
/**Specifies the name of the element */ | |
name?: any; | |
} | |
interface ObjectAttributes extends Attributes { | |
/**Specifies the URL of the resource to be used by the object */ | |
data?: any; | |
/**Specifies the name of the form the element belongs to */ | |
form?: any; | |
/**Specifies the height of the element */ | |
height?: any; | |
/**Specifies the name of the element */ | |
name?: any; | |
/**Script to be run on abort */ | |
onabort?: any; | |
/**Script to be run when a file is ready to start playing (when it has buffered enough to begin) */ | |
oncanplay?: any; | |
/**Script to be run when an error occurs */ | |
onerror?: any; | |
/**Specifies the type of element */ | |
type?: any; | |
/**Specifies an image as a client-side image-map */ | |
usemap?: any; | |
/**Specifies the width of the element */ | |
width?: any; | |
} | |
interface ParamAttributes extends Attributes { | |
/**Specifies the name of the element */ | |
name?: any; | |
/**Specifies the value of the element */ | |
value?: any; | |
} | |
interface OlAttributes extends Attributes { | |
/**Specifies that the list order should be descending (9,8,7...) */ | |
reversed?: any; | |
/**Specifies the start value of an ordered list */ | |
start?: any; | |
} | |
interface LiAttributes extends Attributes { | |
/**Specifies the value of the element */ | |
value?: any; | |
} | |
interface MeterAttributes extends Attributes { | |
/**Specifies the name of the form the element belongs to */ | |
form?: any; | |
/**Specifies the range that is considered to be a high value */ | |
high?: any; | |
/**Specifies the range that is considered to be a low value */ | |
low?: any; | |
/**Specifies the maximum value */ | |
max?: any; | |
/**Specifies a minimum value */ | |
min?: any; | |
/**Specifies what value is the optimal value for the gauge */ | |
optimum?: any; | |
/**Specifies the value of the element */ | |
value?: any; | |
} | |
interface ProgressAttributes extends Attributes { | |
/**Specifies the maximum value */ | |
max?: any; | |
/**Specifies the value of the element */ | |
value?: any; | |
} | |
interface TdThAttributes extends Attributes { | |
/**Specifies the number of columns a table cell should span */ | |
colspan?: any; | |
/**Specifies one or more headers cells a cell is related to */ | |
headers?: any; | |
/**Specifies the number of rows a table cell should span */ | |
rowspan?: any; | |
} | |
interface ThAttributes extends TdThAttributes { | |
/**Specifies whether a header cell is a header for a column, row, or group of columns or rows */ | |
scope?: any; | |
} | |
interface CanvasAttributes extends Attributes { | |
/**Specifies the height of the element */ | |
height?: any; | |
/**Specifies the width of the element */ | |
width?: any; | |
} | |
interface EmbedAttributes extends Attributes { | |
/**Specifies the height of the element */ | |
height?: any; | |
/**Script to be run on abort */ | |
onabort?: any; | |
/**Script to be run when a file is ready to start playing (when it has buffered enough to begin) */ | |
oncanplay?: any; | |
/**Script to be run when an error occurs */ | |
onerror?: any; | |
/**Specifies the URL of the media file */ | |
src?: any; | |
/**Specifies the type of element */ | |
type?: any; | |
/**Specifies the width of the element */ | |
width?: any; | |
} | |
interface IFrameAttributes extends Attributes { | |
/**Specifies the height of the element */ | |
height?: any; | |
/**Specifies the name of the element */ | |
name?: any; | |
/**Script to be run when the element is finished loading */ | |
onload?: any; | |
/**Enables an extra set of restrictions for the content in an <iframe> */ | |
sandbox?: any; | |
/**Specifies the URL of the media file */ | |
src?: any; | |
/**Specifies the HTML content of the page to show in the <iframe> */ | |
srcdoc?: any; | |
/**Specifies the width of the element */ | |
width?: any; | |
} | |
interface AudioVideoAttributes extends Attributes { | |
/**Specifies that the audio/video will start playing as soon as it is ready */ | |
autoplay?: any; | |
/**Specifies that audio/video controls should be displayed (such as a play/pause button etc) */ | |
controls?: any; | |
/**Specifies that the audio/video will start over again, every time it is finished */ | |
loop?: any; | |
/**Specifies that the audio output of the video should be muted */ | |
muted?: any; | |
/**Script to be run on abort */ | |
onabort?: any; | |
/**Script to be run when a file is ready to start playing (when it has buffered enough to begin) */ | |
oncanplay?: any; | |
/**Script to be run when a file can be played all the way to the end without pausing for buffering */ | |
oncanplaythrough?: any; | |
/**Script to be run when the length of the media changes */ | |
ondurationchange?: any; | |
/**Script to be run when something bad happens and the file is suddenly unavailable (like unexpectedly disconnects) */ | |
onemptied?: any; | |
/**Script to be run when the media has reach the end (a useful event for messages like "thanks for listening") */ | |
onended?: any; | |
/**Script to be run when an error occurs */ | |
onerror?: any; | |
/**Script to be run when media data is loaded */ | |
onloadeddata?: any; | |
/**Script to be run when meta data (like dimensions and duration) are loaded */ | |
onloadedmetadata?: any; | |
/**Script to be run just as the file begins to load before anything is actually loaded */ | |
onloadstart?: any; | |
/**Script to be run when the media is paused either by the user or programmatically */ | |
onpause?: any; | |
/**Script to be run when the media has started playing */ | |
onplay?: any; | |
/**Script to be run when the media has started playing */ | |
onplaying?: any; | |
/**Script to be run when the browser is in the process of getting the media data */ | |
onprogress?: any; | |
/**Script to be run each time the playback rate changes (like when a user switches to a slow motion or fast forward mode). */ | |
onratechange?: any; | |
/**Script to be run when the seeking attribute is set to false indicating that seeking has ended */ | |
onseeked?: any; | |
/**Script to be run when the seeking attribute is set to true indicating that seeking is active */ | |
onseeking?: any; | |
/**Script to be run when the browser is unable to fetch the media data for whatever reason */ | |
onstalled?: any; | |
/**Script to be run when fetching the media data is stopped before it is completely loaded for whatever reason */ | |
onsuspend?: any; | |
/**Script to be run when the playing position has changed (like when the user fast forwards to a different point in the media) */ | |
ontimeupdate?: any; | |
/**Script to be run each time the volume of a video/audio has been changed */ | |
onvolumechange?: any; | |
/**Script to be run when the media has paused but is expected to resume (like when the media pauses to buffer more data) */ | |
onwaiting?: any; | |
/**Specifies if and how the author thinks the audio/video should be loaded when the page loads */ | |
preload?: any; | |
/**Specifies the URL of the media file */ | |
src?: any; | |
} | |
interface VideoAttributes extends AudioVideoAttributes { | |
/**Specifies the height of the element */ | |
height?: any; | |
/**Specifies an image to be shown while the video is downloading, or until the user hits the play button */ | |
poster?: any; | |
/**Specifies the width of the element */ | |
width?: any; | |
} | |
interface SourceAttributes extends Attributes { | |
/**Specifies what media/device the linked document is optimized for */ | |
media?: any; | |
/**Specifies the size of the linked resource */ | |
sizes?: any; | |
/**Specifies the URL of the media file */ | |
src?: any; | |
/**Specifies the URL of the image to use in different situations */ | |
srcset?: any; | |
/**Specifies the type of element */ | |
type?: any; | |
} | |
interface TrackAttributes extends Attributes { | |
/**Specifies that the track is to be enabled if the user's preferences do not indicate that another track would be more appropriate */ | |
default?: any; | |
/**Specifies the kind of text track */ | |
kind?: any; | |
/**Specifies the title of the text track */ | |
label?: any; | |
/**Script to be run when the cue changes in a <track> element */ | |
oncuechange?: any; | |
/**Specifies the URL of the media file */ | |
src?: any; | |
/**Specifies the language of the track text data (required if kind="subtitles") */ | |
srclang?: any; | |
} | |
interface AreaAttributes extends Attributes { | |
/**Specifies an alternate text when the original element fails to display */ | |
alt?: any; | |
/**Specifies the coordinates of the area */ | |
coords?: any; | |
/**Specifies that the target will be downloaded when a user clicks on the hyperlink */ | |
download?: any; | |
/**Specifies the URL of the page the link goes to */ | |
href?: any; | |
/**Specifies the language of the linked document */ | |
hreflang?: any; | |
/**Specifies what media/device the linked document is optimized for */ | |
media?: any; | |
/**Specifies the relationship between the current document and the linked document */ | |
rel?: any; | |
/**Specifies the shape of the area */ | |
shape?: any; | |
/**Specifies the target for where to open the linked document or where to submit the form */ | |
target?: any; | |
} | |
interface ColAttributes extends Attributes { | |
/**Specifies the number of columns to span */ | |
span?: any; | |
} | |
interface QAttributes extends Attributes { | |
/**Specifies a URL which explains the quote/deleted/inserted text */ | |
cite?: any; | |
} | |
interface DetailsAttributes extends Attributes { | |
/**Script to be run when the user opens or closes the <details> element */ | |
ontoggle?: any; | |
/**Specifies that the details should be visible (open) to the user */ | |
open?: any; | |
} | |
interface DelInsAttributes extends Attributes { | |
/**Specifies a URL which explains the quote/deleted/inserted text */ | |
cite?: any; | |
/**Specifies the date and time */ | |
datetime?: any; | |
} | |
interface TimeAttributes extends Attributes { | |
/**Specifies the date and time */ | |
datetime?: any; | |
} | |
interface BaseAttributes extends Attributes { | |
/**Specifies the URL of the page the link goes to */ | |
href?: any; | |
/**Specifies the target for where to open the linked document or where to submit the form */ | |
target?: any; | |
} | |
interface LinkAttributes extends Attributes { | |
/**Specifies the URL of the page the link goes to */ | |
href?: any; | |
/**Specifies the language of the linked document */ | |
hreflang?: any; | |
/**Specifies what media/device the linked document is optimized for */ | |
media?: any; | |
/**Script to be run when the element is finished loading */ | |
onload?: any; | |
/**Specifies the relationship between the current document and the linked document */ | |
rel?: any; | |
/**Specifies the size of the linked resource */ | |
sizes?: any; | |
/**Specifies the type of element */ | |
type?: any; | |
} | |
interface MapAttributes extends Attributes { | |
/**Specifies the name of the element */ | |
name?: any; | |
} | |
interface MenuAttributes extends Attributes { | |
/**Specifies the type of element */ | |
type?: any; | |
} | |
interface StyleAttributes extends Attributes { | |
/**Specifies what media/device the linked document is optimized for */ | |
media?: any; | |
/**Script to be run when an error occurs */ | |
onerror?: any; | |
/**Script to be run when the element is finished loading */ | |
onload?: any; | |
/**Specifies the type of element */ | |
type?: any; | |
} | |
interface ScriptAttributes extends Attributes { | |
/**Specifies that the script is executed asynchronously (only for external scripts) */ | |
async?: any; | |
/**Specifies the character encoding */ | |
charset?: any; | |
/**Specifies that the script is executed when the page has finished parsing (only for external scripts) */ | |
defer?: any; | |
/**Script to be run when an error occurs */ | |
onerror?: any; | |
/**Script to be run when the element is finished loading */ | |
onload?: any; | |
/**Specifies the URL of the media file */ | |
src?: any; | |
/**Specifies the type of element */ | |
type?: any; | |
} | |
interface SVGAttributes { | |
[name: string]: any; | |
} | |
} | |
declare module JSX { | |
interface IntrinsicElements { | |
/**Defines a hyperlink */ | |
a: HTML.AAttributes; | |
/**Defines an abbreviation or an acronym */ | |
abbr: HTML.Attributes; | |
/**Defines contact information for the author/owner of a document/article */ | |
address: HTML.Attributes; | |
/**Defines an area inside an image-map */ | |
area: HTML.AreaAttributes; | |
/**Defines an article */ | |
article: HTML.Attributes; | |
/**Defines content aside from the page content */ | |
aside: HTML.Attributes; | |
/**Defines sound content */ | |
audio: HTML.AudioVideoAttributes; | |
/**Defines bold text */ | |
b: HTML.Attributes; | |
/**Specifies the base URL/target for all relative URLs in a document */ | |
base: HTML.BaseAttributes; | |
/**Isolates a part of text that might be formatted in a different direction from other text outside it */ | |
bdi: HTML.Attributes; | |
/**Overrides the current text direction */ | |
bdo: HTML.Attributes; | |
/**Defines big text */ | |
big: HTML.Attributes; | |
/**Defines a section that is quoted from another source */ | |
blockquote: HTML.QAttributes; | |
/**Defines the document's body */ | |
body: HTML.Attributes; | |
/**Inserts a single line break */ | |
br: HTML.Attributes; | |
/**Defines a clickable button */ | |
button: HTML.ButtonAttributes; | |
/**Used to draw graphics, on the fly, via scripting (usually JavaScript) */ | |
canvas: HTML.CanvasAttributes; | |
/**Defines a table caption */ | |
caption: HTML.Attributes; | |
/**Defines the title of a work */ | |
cite: HTML.Attributes; | |
/**Defines a piece of computer code */ | |
code: HTML.Attributes; | |
/**Specifies column properties for each column within a <colgroup> element */ | |
col: HTML.ColAttributes; | |
/**Specifies a group of one or more columns in a table for formatting */ | |
colgroup: HTML.ColAttributes; | |
/**Links the given content with a machine-readable translation */ | |
data: HTML.Attributes; | |
/**Specifies a list of pre-defined options for input controls */ | |
datalist: HTML.Attributes; | |
/**Defines a description of a term/name in a description list */ | |
dd: HTML.Attributes; | |
/**Defines text that has been deleted from a document */ | |
del: HTML.DelInsAttributes; | |
/**Defines additional details that the user can view or hide */ | |
details: HTML.DetailsAttributes; | |
/**Represents the defining instance of a term */ | |
dfn: HTML.Attributes; | |
/**Defines a dialog box or window */ | |
dialog: HTML.Attributes; | |
/**Defines a section in a document */ | |
div: HTML.Attributes; | |
/**Defines a description list */ | |
dl: HTML.Attributes; | |
/**Defines a term/name in a description list */ | |
dt: HTML.Attributes; | |
/**Defines emphasized text */ | |
em: HTML.Attributes; | |
/**Defines a container for an external (non-HTML) application */ | |
embed: HTML.EmbedAttributes; | |
/**Groups related elements in a form */ | |
fieldset: HTML.FieldsetAttributes; | |
/**Defines a caption for a <figure> element */ | |
figcaption: HTML.Attributes; | |
/**Specifies self-contained content */ | |
figure: HTML.Attributes; | |
/**Defines a footer for a document or section */ | |
footer: HTML.Attributes; | |
/**Defines an HTML form for user input */ | |
form: HTML.FormAttributes; | |
/**Defines HTML headings */ | |
h1: HTML.Attributes; | |
/**Defines HTML headings */ | |
h2: HTML.Attributes; | |
/**Defines HTML headings */ | |
h3: HTML.Attributes; | |
/**Defines HTML headings */ | |
h4: HTML.Attributes; | |
/**Defines HTML headings */ | |
h5: HTML.Attributes; | |
/**Defines HTML headings */ | |
h6: HTML.Attributes; | |
/**Defines information about the document */ | |
head: HTML.Attributes; | |
/**Defines a header for a document or section */ | |
header: HTML.Attributes; | |
/**Defines a thematic change in the content */ | |
hr: HTML.Attributes; | |
/**Defines an HTML document */ | |
html: HTML.Attributes; | |
/**Defines a part of text in an alternate voice or mood */ | |
i: HTML.Attributes; | |
/**Defines an inline frame */ | |
iframe: HTML.IFrameAttributes; | |
/**Defines an image */ | |
img: HTML.ImgAttributes; | |
/**Defines an input control */ | |
input: HTML.InputAttributes; | |
/**Defines a text that has been inserted into a document */ | |
ins: HTML.DelInsAttributes; | |
/**Defines keyboard input */ | |
kbd: HTML.Attributes; | |
keygen: HTML.Attributes; | |
/**Defines a label for an <input> element */ | |
label: HTML.LabelAttributes; | |
/**Defines a caption for a <fieldset> element */ | |
legend: HTML.Attributes; | |
/**Defines a list item */ | |
li: HTML.LiAttributes; | |
/**Defines the relationship between a document and an external resource (most used to link to style sheets) */ | |
link: HTML.LinkAttributes; | |
/**Specifies the main content of a document */ | |
main: HTML.Attributes; | |
/**Defines a client-side image-map */ | |
map: HTML.MapAttributes; | |
/**Defines marked/highlighted text */ | |
mark: HTML.Attributes; | |
menu: HTML.MenuAttributes; | |
menuitem: HTML.Attributes; | |
/**Defines metadata about an HTML document */ | |
meta: HTML.Attributes; | |
/**Defines a scalar measurement within a known range (a gauge) */ | |
meter: HTML.MeterAttributes; | |
/**Defines navigation links */ | |
nav: HTML.Attributes; | |
/**Defines an alternate content for users that do not support client-side scripts */ | |
noscript: HTML.Attributes; | |
/**Defines an embedded object */ | |
object: HTML.ObjectAttributes; | |
/**Defines an ordered list */ | |
ol: HTML.Attributes; | |
/**Defines a group of related options in a drop-down list */ | |
optgroup: HTML.OptGroupAttributes; | |
/**Defines an option in a drop-down list */ | |
option: HTML.OptionAttributes; | |
/**Defines the result of a calculation */ | |
output: HTML.OutputAttributes; | |
/**Defines a paragraph */ | |
p: HTML.Attributes; | |
/**Defines a parameter for an object */ | |
param: HTML.ParamAttributes; | |
/**Defines a container for multiple image resources */ | |
picture: HTML.Attributes; | |
/**Defines preformatted text */ | |
pre: HTML.Attributes; | |
/**Represents the progress of a task */ | |
progress: HTML.ProgressAttributes; | |
/**Defines a short quotation */ | |
q: HTML.QAttributes; | |
/**Defines what to show in browsers that do not support ruby annotations */ | |
rp: HTML.Attributes; | |
/**Defines an explanation/pronunciation of characters (for East Asian typography) */ | |
rt: HTML.Attributes; | |
/**Defines a ruby annotation (for East Asian typography) */ | |
ruby: HTML.Attributes; | |
/**Defines text that is no longer correct */ | |
s: HTML.Attributes; | |
/**Defines sample output from a computer program */ | |
samp: HTML.Attributes; | |
/**Defines a client-side script */ | |
script: HTML.ScriptAttributes; | |
/**Defines a section in a document */ | |
section: HTML.Attributes; | |
/**Defines a drop-down list */ | |
select: HTML.SelectAttributes; | |
/**Defines smaller text */ | |
small: HTML.Attributes; | |
/**Defines multiple media resources for media elements (<video>, <audio> and <picture>) */ | |
source: HTML.SourceAttributes; | |
/**Defines a section in a document */ | |
span: HTML.Attributes; | |
/**Defines important text */ | |
strong: HTML.Attributes; | |
/**Defines style information for a document */ | |
style: HTML.StyleAttributes; | |
/**Defines subscripted text */ | |
sub: HTML.Attributes; | |
/**Defines a visible heading for a <details> element */ | |
summary: HTML.Attributes; | |
/**Defines superscripted text */ | |
sup: HTML.Attributes; | |
/**Defines a table */ | |
table: HTML.Attributes; | |
/**Groups the body content in a table */ | |
tbody: HTML.Attributes; | |
/**Defines a cell in a table */ | |
td: HTML.TdThAttributes; | |
/**Defines a multiline input control (text area) */ | |
textarea: HTML.TextAreaAttributes; | |
/**Groups the footer content in a table */ | |
tfoot: HTML.Attributes; | |
/**Defines a header cell in a table */ | |
th: HTML.ThAttributes; | |
/**Groups the header content in a table */ | |
thead: HTML.Attributes; | |
/**Defines a date/time */ | |
time: HTML.Attributes; | |
/**Defines a title for the document */ | |
title: HTML.Attributes; | |
/**Defines a row in a table */ | |
tr: HTML.Attributes; | |
/**Defines text tracks for media elements (<video> and <audio>) */ | |
track: HTML.TrackAttributes; | |
/**Defines text that should be stylistically different from normal text */ | |
u: HTML.Attributes; | |
/**Defines an unordered list */ | |
ul: HTML.Attributes; | |
/**Defines a variable */ | |
var: HTML.Attributes; | |
/**Defines a video or movie */ | |
video: HTML.VideoAttributes; | |
/**Defines a possible line-break */ | |
wbr: HTML.Attributes; | |
/**Defines a container for SVG graphics */ | |
svg: HTML.SVGAttributes; | |
circle: HTML.SVGAttributes; | |
defs: HTML.SVGAttributes; | |
ellipse: HTML.SVGAttributes; | |
g: HTML.SVGAttributes; | |
line: HTML.SVGAttributes; | |
linearGradient: HTML.SVGAttributes; | |
mask: HTML.SVGAttributes; | |
path: HTML.SVGAttributes; | |
pattern: HTML.SVGAttributes; | |
polygon: HTML.SVGAttributes; | |
polyline: HTML.SVGAttributes; | |
radialGradient: HTML.SVGAttributes; | |
rect: HTML.SVGAttributes; | |
stop: HTML.SVGAttributes; | |
text: HTML.SVGAttributes; | |
tspan: HTML.SVGAttributes; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment