University of Exeter
Browse

A formally verified model of web components

Download (544.61 kB)
journal contribution
posted on 2025-08-01, 08:39 authored by AD Brucker, M Herzberg
The trend towards ever more complex client-side web applications is unstoppable. Compared to traditional software development, client-side web development lacks a well-established component model, i.e., a method for easily and safely reusing already developed functionality. To address this issue, the web community started to adopt shadow trees as part of the Document Object Model (DOM): shadow trees allow developers to "partition" a DOM instance into parts that should be safely separated, e.g., code modifying one part should not, unintentionally, affect other parts of the DOM. While shadow trees provide the technical basis for defining web components, the DOM standard neither defines the concept of web components nor specifies the safety properties that web components should guarantee. Consequently, the standard also does not discuss how or even if the methods for modifying the DOM respect component boundaries. In this paper, we present a formally verified model of web components and define safety properties which ensure that different web components can only interact with each other using well-defined interfaces. Moreover, our verification of the application programming interface (API) of the DOM revealed numerous invariants that implementations of the DOM API need to preserve to ensure the integrity of components.

History

Related Materials

  1. 1.
    ISBN - Is published in urn:isbn:978-3-030-40914-2

Rights

© Springer Nature Switzerland AG 2020.

Notes

Formal Aspects of Component Software: 16th International Symposium, FACS 2019, Amsterdam, The Netherlands, 23-25-October 2019 This is the author accepted manuscript. The final version is available from Springer via the DOI in this record.

Journal

Lecture Notes in Computer Science

Publisher

Springer Verlag

Editors

Jongmans, S-S; Arbab, F

Version

  • Accepted Manuscript

Language

en

FCD date

2020-01-27T09:54:16Z

FOA date

0299-01-01T00:00:00Z

Citation

In: Farhad Arbab and Sung-Shik Jongmans (eds.), FACS 2019: Formal Aspects of Component Software, pp 51-71.

Department

  • Computer Science

Usage metrics

    University of Exeter

    Categories

    No categories selected

    Exports

    RefWorks
    BibTeX
    Ref. manager
    Endnote
    DataCite
    NLM
    DC