summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML/HTMLHyperlinkElementUtils.cpp
AgeCommit message (Collapse)Author
2023-02-19LibWeb: Use is_ascii_case_insensitive_match() where the spec says toSam Atkins
2022-12-19LibWeb: Fully Implement `get_an_elements_noopener`Keir Davis
This removes two fix me in HTMLHyperlinkElementUtils
2022-12-06Everywhere: Rename to_{string => deprecated_string}() where applicableLinus Groh
This will make it easier to support both string types at the same time while we convert code, and tracking down remaining uses. One big exception is Value::to_string() in LibJS, where the name is dictated by the ToString AO.
2022-12-06AK+Everywhere: Rename String to DeprecatedStringLinus Groh
We have a new, improved string type coming up in AK (OOM aware, no null state), and while it's going to use UTF-8, the name UTF8String is a mouthful - so let's free up the String name by renaming the existing class. Making the old one have an annoying name will hopefully also help with quick adoption :^)
2022-11-19Everywhere: Remove unnecessary mutable attributes from lambdasMacDue
These lambdas were marked mutable as they captured a Ptr wrapper class by value, which then only returned const-qualified references to the value they point from the previous const pointer operators. Nothing is actually mutating in the lambdas state here, and now that the Ptr operators don't add extra const qualifiers these can be removed.
2022-11-18LibWeb: Fix clicking on linksMacDue
Since ff2f31b LibWeb has segfaulted when clicking on links, as the browsing context (a GCPtr) in the lambda was captured by reference and was out of scope by the time the callback fired.
2022-11-15LibWeb: Bring BrowsingContext::choose_a_browsing_context closer to specIdan Horowitz
2022-03-26LibWeb: Bring handling of anchor elements closer to specsin-ack
This commit moves the regular handling of links to the anchor elements' activation behavior, and implements a few auxiliary algorithms as defined by the HTML specification. Note that certain things such as javascript links, fragments and opening a new tab are still handled directly in EventHandler, but they have been moved to handle_mouseup so that it behaves closer to how it would if it was entirely up-to-spec.
2022-03-17Libraries: Use default constructors/destructors in LibWebLenny Maiorani
https://isocpp.github.io/CppCoreGuidelines/CppCoreGuidelines#cother-other-default-operation-rules "The compiler is more likely to get the default semantics right and you cannot implement these functions better than the compiler."
2021-10-03LibWeb: Implement the HTMLHyperlinkElementUtils mixinAndreas Kling
This is used by HTMLAnchorElement and HTMLAreaElement to share functionality related to their href attribute.