Skip to content

Commit f0b912c

Browse files
committed
add HTML text level semantics types
1 parent acf9e8d commit f0b912c

File tree

5 files changed

+80
-5
lines changed

5 files changed

+80
-5
lines changed

baselines/dom.generated.d.ts

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5525,7 +5525,6 @@ declare var HTMLAllCollection: {
55255525
};
55265526

55275527
interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
5528-
Methods: string;
55295528
/**
55305529
* Sets or retrieves the character set used to encode the object.
55315530
*/
@@ -5541,14 +5540,13 @@ interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
55415540
* Sets or retrieves the language code of the object.
55425541
*/
55435542
hreflang: string;
5544-
readonly mimeType: string;
55455543
/**
55465544
* Sets or retrieves the shape of the object.
55475545
*/
55485546
/** @deprecated */
55495547
name: string;
5550-
readonly nameProp: string;
5551-
readonly protocolLong: string;
5548+
ping: string;
5549+
referrerPolicy: string;
55525550
/**
55535551
* Sets or retrieves the relationship between the object and the destination of the link.
55545552
*/
@@ -5573,7 +5571,6 @@ interface HTMLAnchorElement extends HTMLElement, HTMLHyperlinkElementUtils {
55735571
*/
55745572
text: string;
55755573
type: string;
5576-
urn: string;
55775574
addEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
55785575
addEventListener(type: string, listener: EventListenerOrEventListenerObject, options?: boolean | AddEventListenerOptions): void;
55795576
removeEventListener<K extends keyof HTMLElementEventMap>(type: K, listener: (this: HTMLAnchorElement, ev: HTMLElementEventMap[K]) => any, options?: boolean | EventListenerOptions): void;

inputfiles/addedTypes.json

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2123,6 +2123,41 @@
21232123
},
21242124
"no-interface-object": "1"
21252125
},
2126+
"HTMLAnchorElement": {
2127+
"element": [
2128+
{
2129+
"name": "a"
2130+
}
2131+
]
2132+
},
2133+
"HTMLBRElement": {
2134+
"element": [
2135+
{
2136+
"name": "br"
2137+
}
2138+
]
2139+
},
2140+
"HTMLDataElement": {
2141+
"element": [
2142+
{
2143+
"name": "data"
2144+
}
2145+
]
2146+
},
2147+
"HTMLSpanElement": {
2148+
"element": [
2149+
{
2150+
"name": "span"
2151+
}
2152+
]
2153+
},
2154+
"HTMLTimeElement": {
2155+
"element": [
2156+
{
2157+
"name": "time"
2158+
}
2159+
]
2160+
},
21262161
"HTMLTableDataCellElement": {
21272162
"name": "HTMLTableDataCellElement",
21282163
"extends": "HTMLTableCellElement",
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"a-text": "Same as textContent."
3+
}
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
[Exposed=Window,
2+
HTMLConstructor]
3+
interface HTMLAnchorElement : HTMLElement {
4+
[CEReactions] attribute DOMString target;
5+
[CEReactions] attribute DOMString download;
6+
[CEReactions] attribute USVString ping;
7+
[CEReactions] attribute DOMString rel;
8+
[SameObject, PutForwards=value] readonly attribute DOMTokenList relList;
9+
[CEReactions] attribute DOMString hreflang;
10+
[CEReactions] attribute DOMString type;
11+
12+
[CEReactions] attribute DOMString text;
13+
14+
[CEReactions] attribute DOMString referrerPolicy;
15+
};
16+
HTMLAnchorElement includes HTMLHyperlinkElementUtils;
17+
18+
[Exposed=Window,
19+
HTMLConstructor]
20+
interface HTMLDataElement : HTMLElement {
21+
[CEReactions] attribute DOMString value;
22+
};
23+
24+
[Exposed=Window,
25+
HTMLConstructor]
26+
interface HTMLTimeElement : HTMLElement {
27+
[CEReactions] attribute DOMString dateTime;
28+
};
29+
30+
[Exposed=Window,
31+
HTMLConstructor]
32+
interface HTMLSpanElement : HTMLElement {};
33+
34+
[Exposed=Window,
35+
HTMLConstructor]
36+
interface HTMLBRElement : HTMLElement {};

inputfiles/idlSources.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,10 @@
4848
"title": "HTML - Obsolete features",
4949
"deprecated": true
5050
},
51+
{
52+
"url": "https://html.spec.whatwg.org/multipage/text-level-semantics.html",
53+
"title": "HTML - Text level semantics"
54+
},
5155
{
5256
"url": "https://html.spec.whatwg.org/multipage/webstorage.html",
5357
"title": "HTML - Web storage"

0 commit comments

Comments
 (0)