summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/XML
AgeCommit message (Collapse)Author
2023-05-01LibWeb: Make XMLDocumentBuilder create elements with the HTML namespaceAli Mohammad Pur
Otherwise we'll end up with all-generic elements and not run any special HTML sauce logic, leading to very plain pages.
2023-04-09LibWeb: Port fire_a_page_transition_event() to new FlyStringKenneth Myhra
2023-04-07LibWeb: Port {Mouse,UI,Wheel,}Event to new StringKenneth Myhra
This ports MouseEvent, UIEvent, WheelEvent, and Event to new String. They all had a dependency to T::create() in WebDriverConnection::fire_an_event() and therefore had to be ported in the same commit.
2023-04-06LibWeb: Port {HTML,UIEvents,XHR}::EventNames to new StringKenneth Myhra
2023-03-15LibJS+LibWeb: Wrap raw JS::Cell*/& fields in GCPtr/NonnullGCPtrMatthew Olsson
2023-02-22LibWeb: Make factory method of DOM::ElementFactory fallibleKenneth Myhra
2023-02-18LibWeb: Make factory methods of DOM::Event fallibleKenneth Myhra
Because of interdependencies between DOM::Event and UIEvents::MouseEvent to template function fire_an_event() in WebDriverConnection.cpp, the commit: 'LibWeb: Make factory methods of UIEvents::MouseEvent fallible' have been squashed into this commit.
2023-01-09AK+Everywhere: Rename FlyString to DeprecatedFlyStringTimothy Flynn
DeprecatedFlyString relies heavily on DeprecatedString's StringImpl, so let's rename it to A) match the name of DeprecatedString, B) write a new FlyString class that is tied to String.
2023-01-08LibXML+LibWeb: Avoid implicit cast from StringView{}->DeprecatedStringAli Mohammad Pur
This produces a (truly) null DeprecatedString, which is not expected to occur by CharacterData (where this string ends up). Simply pass an "empty" DeprecatedString manually instead.
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-21LibWeb: Rename HTMLScriptElement "non-blocking" to "force async"Andreas Kling
This has been renamed in the spec, so let's do it here too.
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-03LibXML+LibWeb: Store the XML document's original sourceTimothy Flynn
Similar to how we store an HTML document's original source. This allows the source to be inspected with "View Source" in the Browser.
2022-10-31LibWeb: Handle currently ignored `WebIDL::ExceptionOr<T>`sLinus Groh
2022-10-05LibWeb: Rename HighResolutionTime/{CoarsenTime => TimeOrigin}.cpp/hLinus Groh
This is being used for more than just time coarsening now, so let's use the spec's section title for the name.
2022-10-05LibWeb: Move unsafe_shared_current_time() to HighResolutionTimeLinus Groh
This doesn't belong on the EventLoop at all, as far as I can tell.
2022-10-01LibWeb: Remove unecessary dependence on Window from assorted classesAndrew Kaster
These classes only needed Window to get at its realm. Pass a realm directly to construct Crypto, Encoding, HRT, IntersectionObserver, NavigationTiming, Page, RequestIdleCallback, Selection, Streams, URL, and XML classes.
2022-09-24LibWeb: Remove now-unnecessary JS::Handles in HTML task capture listsAndreas Kling
JS::SafeFunction will protect anything captures for HTML tasks now.
2022-09-21LibWeb: Save begin/end timestamps for load and DOMContentLoaded eventsAndreas Kling
2022-09-06LibWeb+LibJS: Make the EventTarget hierarchy (incl. DOM) GC-allocatedAndreas Kling
This is a monster patch that turns all EventTargets into GC-allocated PlatformObjects. Their C++ wrapper classes are removed, and the LibJS garbage collector is now responsible for their lifetimes. There's a fair amount of hacks and band-aids in this patch, and we'll have a lot of cleanup to do after this.
2022-09-06LibWeb: Make DOM::Event and all its subclasses GC-allocatedAndreas Kling
2022-04-01Everywhere: Run clang-formatIdan Horowitz
2022-03-28LibWeb: Load X(HT)ML documents and transform them into HTML DOMAli Mohammad Pur