-
Notifications
You must be signed in to change notification settings - Fork 439
Add HTML text level semantics types #494
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
f0b912c
add HTML text level semantics types
saschanaz fcf40f1
adds edits/links/embedded content types
saschanaz e70e79b
Merge branch 'master' into text-semantics
saschanaz c3cc60d
Merge branch 'master' into text-semantics
saschanaz 69103b5
Merge remote-tracking branch 'upstream/master' into text-semantics
saschanaz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
[Exposed=Window, | ||
HTMLConstructor] | ||
interface HTMLModElement : HTMLElement { | ||
[CEReactions] attribute USVString cite; | ||
[CEReactions] attribute DOMString dateTime; | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{ | ||
"img-height": "These attributes return the actual rendered dimensions of the\nimage, or zero if the dimensions are not known.\nThey can be set, to change the corresponding content\nattributes.", | ||
"img-naturalheight": "These attributes return the intrinsic dimensions of the image,\nor zero if the dimensions are not known.", | ||
"img-complete": "Returns true if the image has been completely downloaded or if\nno image is specified; otherwise, returns false.", | ||
"img-currentsrc": "Returns the image's absolute URL.", | ||
"img-decoding": "Returns the image decoding hint set for this image.", | ||
"img-decode": "This method causes the user agent to decode the\nimage in parallel, returning a promise that fulfills when decoding is complete.\nThe promise will be rejected with an \"EncodingError\"\nDOMException if the image cannot be decoded.", | ||
"image": "Returns a new img element, with the width and height attributes set to the values\npassed in the relevant arguments, if applicable." | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
[Exposed=Window, | ||
HTMLConstructor] | ||
interface HTMLPictureElement : HTMLElement {}; | ||
|
||
[Exposed=Window, | ||
HTMLConstructor] | ||
interface HTMLSourceElement : HTMLElement { | ||
[CEReactions] attribute USVString src; | ||
[CEReactions] attribute DOMString type; | ||
[CEReactions] attribute USVString srcset; | ||
[CEReactions] attribute DOMString sizes; | ||
[CEReactions] attribute DOMString media; | ||
}; | ||
|
||
[Exposed=Window, | ||
HTMLConstructor, | ||
NamedConstructor=Image(optional unsigned long width, optional unsigned long height)] | ||
interface HTMLImageElement : HTMLElement { | ||
[CEReactions] attribute DOMString alt; | ||
[CEReactions] attribute USVString src; | ||
[CEReactions] attribute USVString srcset; | ||
[CEReactions] attribute DOMString sizes; | ||
[CEReactions] attribute DOMString? crossOrigin; | ||
[CEReactions] attribute DOMString useMap; | ||
[CEReactions] attribute boolean isMap; | ||
[CEReactions] attribute unsigned long width; | ||
[CEReactions] attribute unsigned long height; | ||
readonly attribute unsigned long naturalWidth; | ||
readonly attribute unsigned long naturalHeight; | ||
readonly attribute boolean complete; | ||
readonly attribute USVString currentSrc; | ||
[CEReactions] attribute DOMString referrerPolicy; | ||
[CEReactions] attribute DOMString decoding; | ||
|
||
Promise<void> decode(); | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
"hyperlink-href": "Returns the hyperlink's URL.\nCan be set, to change the URL.", | ||
"hyperlink-origin": "Returns the hyperlink's URL's origin.", | ||
"hyperlink-protocol": "Returns the hyperlink's URL's scheme.\nCan be set, to change the URL's scheme.", | ||
"hyperlink-username": "Returns the hyperlink's URL's username.\nCan be set, to change the URL's username.", | ||
"hyperlink-password": "Returns the hyperlink's URL's password.\nCan be set, to change the URL's password.", | ||
"hyperlink-host": "Returns the hyperlink's URL's host and port (if different from the default port for the\nscheme).\nCan be set, to change the URL's host and port.", | ||
"hyperlink-hostname": "Returns the hyperlink's URL's host.\nCan be set, to change the URL's host.", | ||
"hyperlink-port": "Returns the hyperlink's URL's port.\nCan be set, to change the URL's port.", | ||
"hyperlink-pathname": "Returns the hyperlink's URL's path.\nCan be set, to change the URL's path.", | ||
"hyperlink-search": "Returns the hyperlink's URL's query (includes leading \"?\" if\nnon-empty).\nCan be set, to change the URL's query (ignores leading \"?\").", | ||
"hyperlink-hash": "Returns the hyperlink's URL's fragment (includes leading \"#\" if\nnon-empty).\nCan be set, to change the URL's fragment (ignores leading \"#\")." | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
interface mixin HTMLHyperlinkElementUtils { | ||
[CEReactions] stringifier attribute USVString href; | ||
readonly attribute USVString origin; | ||
[CEReactions] attribute USVString protocol; | ||
[CEReactions] attribute USVString username; | ||
[CEReactions] attribute USVString password; | ||
[CEReactions] attribute USVString host; | ||
[CEReactions] attribute USVString hostname; | ||
[CEReactions] attribute USVString port; | ||
[CEReactions] attribute USVString pathname; | ||
[CEReactions] attribute USVString search; | ||
[CEReactions] attribute USVString hash; | ||
}; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"a-text": "Same as textContent." | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
[Exposed=Window, | ||
HTMLConstructor] | ||
interface HTMLAnchorElement : HTMLElement { | ||
[CEReactions] attribute DOMString target; | ||
[CEReactions] attribute DOMString download; | ||
[CEReactions] attribute USVString ping; | ||
[CEReactions] attribute DOMString rel; | ||
[SameObject, PutForwards=value] readonly attribute DOMTokenList relList; | ||
[CEReactions] attribute DOMString hreflang; | ||
[CEReactions] attribute DOMString type; | ||
|
||
[CEReactions] attribute DOMString text; | ||
|
||
[CEReactions] attribute DOMString referrerPolicy; | ||
}; | ||
HTMLAnchorElement includes HTMLHyperlinkElementUtils; | ||
|
||
[Exposed=Window, | ||
HTMLConstructor] | ||
interface HTMLDataElement : HTMLElement { | ||
[CEReactions] attribute DOMString value; | ||
}; | ||
|
||
[Exposed=Window, | ||
HTMLConstructor] | ||
interface HTMLTimeElement : HTMLElement { | ||
[CEReactions] attribute DOMString dateTime; | ||
}; | ||
|
||
[Exposed=Window, | ||
HTMLConstructor] | ||
interface HTMLSpanElement : HTMLElement {}; | ||
|
||
[Exposed=Window, | ||
HTMLConstructor] | ||
interface HTMLBRElement : HTMLElement {}; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i do not see these comments showing up
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure what should be done there, it seems should be
htmlhyperlinkelementutils-href
instead ofhyperlink-href
to add it to the lib file. Should it be manually mapped?