summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/HTMLAnchorElement.cpp
diff options
context:
space:
mode:
authorLuke Wilde <lukew@serenityos.org>2022-11-05 03:58:14 +0000
committerAndreas Kling <kling@serenityos.org>2022-11-07 14:10:41 +0100
commit1473bc9169dd73d411eab17b0078abbfb451396b (patch)
tree09dcf4c9579ad6990cf4b43306d3d7239ef6821f /Userland/Libraries/LibWeb/HTML/HTMLAnchorElement.cpp
parent6c21c72492b2601132a9ff28e658c4b0ffb8a370 (diff)
downloadserenity-1473bc9169dd73d411eab17b0078abbfb451396b.zip
LibWeb: Implement HTMLOrSVGElement.tabIndex
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML/HTMLAnchorElement.cpp')
-rw-r--r--Userland/Libraries/LibWeb/HTML/HTMLAnchorElement.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/HTML/HTMLAnchorElement.cpp b/Userland/Libraries/LibWeb/HTML/HTMLAnchorElement.cpp
index fb565e8042..28bf54d892 100644
--- a/Userland/Libraries/LibWeb/HTML/HTMLAnchorElement.cpp
+++ b/Userland/Libraries/LibWeb/HTML/HTMLAnchorElement.cpp
@@ -77,4 +77,11 @@ void HTMLAnchorElement::run_activation_behavior(Web::DOM::Event const&)
follow_the_hyperlink(hyperlink_suffix);
}
+// https://html.spec.whatwg.org/multipage/interaction.html#dom-tabindex
+i32 HTMLAnchorElement::default_tab_index_value() const
+{
+ // See the base function for the spec comments.
+ return 0;
+}
+
}