mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00:00
LibWeb/HTML: Implement cite attribute according to spec
Implements the cite attribute of `q`, `blockqoute`, `ins` and `del` elements according to spec by returning a valid URL.
This commit is contained in:
parent
2f51e9a98e
commit
74645facae
Notes:
github-actions[bot]
2024-11-26 11:41:48 +00:00
Author: https://github.com/skyz1
Commit: 74645facae
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2576
Reviewed-by: https://github.com/tcl3 ✅
4 changed files with 10 additions and 2 deletions
|
@ -6,7 +6,7 @@ interface HTMLModElement : HTMLElement {
|
||||||
|
|
||||||
[HTMLConstructor] constructor();
|
[HTMLConstructor] constructor();
|
||||||
|
|
||||||
[CEReactions, Reflect] attribute USVString cite;
|
[CEReactions, Reflect, URL] attribute USVString cite;
|
||||||
[CEReactions, Reflect=datetime] attribute DOMString dateTime;
|
[CEReactions, Reflect=datetime] attribute DOMString dateTime;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -6,6 +6,6 @@ interface HTMLQuoteElement : HTMLElement {
|
||||||
|
|
||||||
[HTMLConstructor] constructor();
|
[HTMLConstructor] constructor();
|
||||||
|
|
||||||
[CEReactions, Reflect] attribute USVString cite;
|
[CEReactions, Reflect, URL] attribute USVString cite;
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
|
@ -14,3 +14,7 @@ script.src final URL path segment: %EF%BF%BDa%EF%BF%BDb%EF%BF%BD
|
||||||
source.src final URL path segment: %EF%BF%BDa%EF%BF%BDb%EF%BF%BD
|
source.src final URL path segment: %EF%BF%BDa%EF%BF%BDb%EF%BF%BD
|
||||||
track.src final URL path segment: %EF%BF%BDa%EF%BF%BDb%EF%BF%BD
|
track.src final URL path segment: %EF%BF%BDa%EF%BF%BDb%EF%BF%BD
|
||||||
video.src final URL path segment: %EF%BF%BDa%EF%BF%BDb%EF%BF%BD
|
video.src final URL path segment: %EF%BF%BDa%EF%BF%BDb%EF%BF%BD
|
||||||
|
q.cite final URL path segment: %EF%BF%BDa%EF%BF%BDb%EF%BF%BD
|
||||||
|
blockquote.cite final URL path segment: %EF%BF%BDa%EF%BF%BDb%EF%BF%BD
|
||||||
|
ins.cite final URL path segment: %EF%BF%BDa%EF%BF%BDb%EF%BF%BD
|
||||||
|
del.cite final URL path segment: %EF%BF%BDa%EF%BF%BDb%EF%BF%BD
|
||||||
|
|
|
@ -19,6 +19,10 @@
|
||||||
{ "source": "src" },
|
{ "source": "src" },
|
||||||
{ "track": "src" },
|
{ "track": "src" },
|
||||||
{ "video": "src" },
|
{ "video": "src" },
|
||||||
|
{ "q": "cite" },
|
||||||
|
{ "blockquote": "cite" },
|
||||||
|
{ "ins": "cite" },
|
||||||
|
{ "del": "cite" },
|
||||||
];
|
];
|
||||||
for (const elementDescriptor of elementList) {
|
for (const elementDescriptor of elementList) {
|
||||||
[elementName, propertyName] = Object.entries(elementDescriptor)[0];
|
[elementName, propertyName] = Object.entries(elementDescriptor)[0];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue