Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: validator/validator
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 26.11.4
Choose a base ref
...
head repository: validator/validator
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 26.11.9
Choose a head ref
  • 5 commits
  • 14 files changed
  • 2 contributors

Commits on Nov 4, 2026

  1. ci: Run the Bikeshed check twice a day

    Run the scheduled Bikeshed check at 03:17 and 15:17 UTC, twelve hours
    apart, rather than once a day — so a Bikeshed release that emits
    something the checker doesn’t support shows up within half a day.
    sideshowbarker committed Nov 4, 2026
    Configuration menu
    Copy the full SHA
    611594c View commit details
    Browse the repository at this point in the history
  2. chore(deps): Bump vitest to 4.1.12, and vite, source-map-js, nanoid

    Also bump vite to 7.3.7, source-map-js to 1.2.2, and nanoid to 3.3.20,
    all within their existing ranges. That clears the open Dependabot alerts
    for @vitest/mocker, vite, and source-map-js, and the nanoid advisory
    GHSA-2v37-7h3g-55p8.
    sideshowbarker committed Nov 4, 2026
    Configuration menu
    Copy the full SHA
    06880e8 View commit details
    Browse the repository at this point in the history
  3. fix: Report the right line numbers when CSS checking is on

    Problem: With --also-check-css, the command-line checker reported each
    HTML and SVG message a line above where it was, and with --skip-non-css,
    each CSS message a line below. And --skip-non-css made a CSS URL fail
    with an uncaught NonXmlContentTypeException. After a CSS document in the
    same run, a document also got a wider extract around each message. And
    the web service dropped any lineoffset parameter for a CSS document.
    
    Cause: A CSS document gets checked inside an HTML wrapper whose first
    line comes before the CSS, so its messages need moving up a line. But
    SimpleCommandLineValidator.setup() set that -1 line offset for the whole
    run whenever cssCheckingEnabled() was true — so it applied to all the
    documents checked. And cssCheckingEnabled() left out --skip-non-css, so
    that option got no offset, and no setAllowCss() for checkHttpURL() to
    accept a text/css response. Also, nothing ever cleared the flag that
    SimpleDocumentValidator.checkAsCss() sets with SourceCode.setIsCss().
    And VerifierServletTransaction set the -1 with setLineOffset(), which
    replaced any lineoffset parameter.
    
    Fix: MessageEmitterAdapter now moves the messages and the source listing
    up a line only while SourceCode.getIsCss() says the document is CSS, and
    adds that to any configured offset. Both setLineOffset(-1) calls are
    gone. SimpleDocumentValidator now clears the CSS flag before it checks
    an HTML or XML document, and cssCheckingEnabled() covers --skip-non-css.
    
    Fixes #2166
    sideshowbarker committed Nov 4, 2026
    Configuration menu
    Copy the full SHA
    daec6f1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    26b30ab View commit details
    Browse the repository at this point in the history

Commits on Nov 9, 2026

  1. fix: Report the right message locations with --no-stream

    Problem: With --no-stream, each HTML parser message got a range that
    started at the start of the document — or, in the output formats with
    extracts, at the end of the previous message — so its extract and
    highlight took in all the markup from there to the error. And a checker
    message reported at an end tag (for a <div> in a <dl> without a <dt> or
    <dd>, e.g.) got no location at all.
    
    Cause: With --no-stream, HtmlParser uses its SAXTreeBuilder, which
    builds the whole tree before TreeParser replays it as SAX events. And
    only the replay reaches the wiretap that SimpleDocumentValidator sets up
    to feed the location recorder in SourceCode. So when the parser reported
    an error, the recorder had no locations yet for rangeStartForRangeLast()
    to find the start of the range from. Also, SAXTreeBuilder never set an
    element’s end locator, so the replay gave endElement events no location.
    
    Fix: As SAXTreeBuilder builds the tree, it now sends the events a
    streaming parse emits, at the same points, to any handlers set with the
    new HtmlParser.setTreeBuildingWiretap() — and with --no-stream,
    SimpleDocumentValidator sets the location recorder there. So by the time
    of each parser error, the recorder has the same locations a streaming
    parse gives it. SAXTreeBuilder also now sets each element’s end locator
    when it pops the element.
    
    Fixes #2168
    sideshowbarker committed Nov 9, 2026
    Configuration menu
    Copy the full SHA
    524d973 View commit details
    Browse the repository at this point in the history
Loading