1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 06:58:11 +00:00
serenity/Userland/Libraries/LibWeb
Timothy Flynn 5b2bc90b50 LibWeb: Set consistent positions for the start and end of HTML tags
To illustrate the previous behavior, consider these tags and their start
and end positions (shown inclusively below):

    Start tag:    End tag:
    <span>        </span>
     ^ start       ^ start
         ^end           ^end

The start position of a tag is the first ASCII-alpha code point after
the opening brace. The start position of a close tag is the slash just
before the first ASCII-alpha code point. And the end position of both
is the closing brace. So the opening brace is not included in the
emitted tag, but the closing brace is. And the end tag including the
slash is an oddity that had to be worked around in its only use case
(syntax highlighting).

We now consistently exclude the braces from the emitted tag, and also
exclude the slash from the end tag, so that it does not need to be
accounted for in syntax highlighting. That is, we now have:

    Start tag:    End tag:
    <span>        </span>
     ^ start        ^ start
        ^end           ^end

The tokenizer unit test has been extended to test these positions.
2023-08-25 08:22:24 +02:00
..
ARIA Userland: Prefer _string over _short_string 2023-08-08 07:37:21 +02:00
Bindings LibJS: Make Heap::allocate<T>() infallible 2023-08-13 15:38:42 +02:00
Cookie Userland: Remove remaining users of Duration::now_realtime() 2023-05-24 23:18:07 +02:00
Crypto LibJS: Make Heap::allocate<T>() infallible 2023-08-13 15:38:42 +02:00
CSS LibWeb: Comment out invalid display-outside rules from Default.css 2023-08-24 22:51:11 +01:00
DOM LibWeb: Make Document::determine_the_indicated_part public 2023-08-24 11:03:57 -06:00
DOMParsing LibJS: Make Heap::allocate<T>() infallible 2023-08-13 15:38:42 +02:00
Encoding LibJS: Make Heap::allocate<T>() infallible 2023-08-13 15:38:42 +02:00
Fetch LibWeb: Use StringView in calls to Vector<String>::contains_slow() 2023-08-23 20:21:09 +02:00
FileAPI LibJS: Make Heap::allocate<T>() infallible 2023-08-13 15:38:42 +02:00
Geometry LibWeb: Add DOMQuad and text tests 2023-08-23 12:11:21 +01:00
HighResolutionTime LibJS: Make Heap::allocate<T>() infallible 2023-08-13 15:38:42 +02:00
HTML LibWeb: Set consistent positions for the start and end of HTML tags 2023-08-25 08:22:24 +02:00
Infra LibJS: Make PrimitiveString::utf8_string() infallible 2023-08-09 17:09:16 +02:00
Internals LibWeb: Add hit testing API in internals object 2023-08-09 17:26:44 +02:00
IntersectionObserver LibJS: Make Heap::allocate<T>() infallible 2023-08-13 15:38:42 +02:00
Layout LibWeb: Add a table row to the layout tree for buttons 2023-08-24 07:08:21 +02:00
Loader LibWeb: Remove "LibWeb+LibJS/1.0" from the default User-Agent string 2023-08-24 07:14:51 +02:00
MathML LibJS: Make Heap::allocate<T>() infallible 2023-08-13 15:38:42 +02:00
MimeSniff Everywhere: Remove unused DeprecatedString includes 2023-04-09 22:00:54 +02:00
NavigationTiming LibJS: Make Cell::initialize() return void 2023-08-08 07:39:11 +02:00
Page LibWeb: Add support for "User" CascadeOrigin 2023-08-23 05:32:10 +02:00
Painting LibWeb: When growing or shrinking a border-radius, ignore it if it's 0 2023-08-24 20:17:45 +02:00
PerformanceTimeline LibJS: Make Cell::initialize() return void 2023-08-08 07:39:11 +02:00
PermissionsPolicy LibWeb+LibWebView+WebContent: Add APIs to manage an autoplay allowlist 2023-04-18 16:30:02 +02:00
Platform LibWeb/Ladybird: Use the abstract audio output in a new audio plugin 2023-08-04 13:49:36 -06:00
ReferrerPolicy AK: Port URL username/password from DeprecatedString to String 2023-08-13 15:03:53 -06:00
RequestIdleCallback LibJS: Make Heap::allocate<T>() infallible 2023-08-13 15:38:42 +02:00
ResizeObserver LibJS: Make Heap::allocate<T>() infallible 2023-08-13 15:38:42 +02:00
SecureContexts AK: Serialize URL hosts with 'concept-host-serializer' 2023-07-31 05:18:51 +02:00
Selection LibJS: Make Heap::allocate<T>() infallible 2023-08-13 15:38:42 +02:00
SRI LibWeb: Implement integrity-metadata part of fetch algorithm 2023-04-21 20:44:47 +01:00
Streams LibJS: Make Heap::allocate<T>() infallible 2023-08-13 15:38:42 +02:00
SVG LibWeb: Update <use> visuals after changing the referenced element 2023-08-23 11:55:24 +01:00
UIEvents LibJS: Make Heap::allocate<T>() infallible 2023-08-13 15:38:42 +02:00
URL AK: Port URL::m_fragment from DeprecatedString to String 2023-08-13 15:03:53 -06:00
UserTiming LibJS: Make Heap::allocate<T>() infallible 2023-08-13 15:38:42 +02:00
WebAssembly LibWasm+LibWeb: Parse and validate all Wasm SIMD instructions 2023-08-21 13:39:32 +03:30
WebAudio LibJS: Make Heap::allocate<T>() infallible 2023-08-13 15:38:42 +02:00
WebDriver LibWeb: Add missing promise rejection in execute_async_script 2023-08-21 13:22:04 -06:00
WebGL LibJS: Make Heap::allocate<T>() infallible 2023-08-13 15:38:42 +02:00
WebIDL LibJS: Make Heap::allocate<T>() infallible 2023-08-13 15:38:42 +02:00
WebSockets AK: Port URL::m_fragment from DeprecatedString to String 2023-08-13 15:03:53 -06:00
XHR LibWeb: Make Fetch::Infrastructure::Body be GC allocated 2023-08-19 15:12:00 +02:00
XML LibJS: Make Heap::allocate<T>() infallible 2023-08-13 15:38:42 +02:00
CMakeLists.txt LibWeb: Implement spec-compliant integer parsing 2023-08-24 22:26:53 +01:00
Dump.cpp LibWeb: Make StyleValue::to_string() infallible 2023-08-22 17:51:48 +01:00
Dump.h LibWeb: Rough implementation of CSS namespace rule 2023-07-30 20:27:19 +01:00
FontCache.cpp LibWeb: Invalidate font cache when web fonts are downloaded 2023-08-24 22:07:00 +01:00
FontCache.h LibWeb: Invalidate font cache when web fonts are downloaded 2023-08-24 22:07:00 +01:00
Forward.h LibWeb: Add NavigateEvent, the main event of the Navigation API 2023-08-24 11:03:57 -06:00
idl_files.cmake LibWeb: Add NavigateEvent, the main event of the Navigation API 2023-08-24 11:03:57 -06:00
Namespace.cpp AK: Make "foo"_fly_string infallible 2023-08-07 16:03:27 +02:00
Namespace.h AK: Make "foo"_fly_string infallible 2023-08-07 16:03:27 +02:00
PixelUnits.cpp LibWeb: Inline and constexpr most PixelUnits methods 2023-08-05 20:03:09 +02:00
PixelUnits.h LibWeb: Fix a rounding issue on CSSPixels multiplication 2023-08-18 17:58:44 +02:00
TreeNode.h LibWeb: Remove all the unused functions from TreeNode 2023-08-20 05:02:59 +02:00