Skip to content

Upcoming WHATNOT meeting on 2025-10-02 #11717

Closed

Description

@cwilso

What is the issue with the HTML Standard?

Yesterday we held our weekly triage call (#11696) and I will post the meeting notes there in a bit. The next one is scheduled for October 2, 1AM PDT. Note that this is 1 week later in the APAC-EMEA friendly time.

People interested in attending the next call please respond here or reach out privately to @cwilso, or the editors. We will be tagging issues for the next call again using agenda+ in all WHATWG repositories across issues and pull requests and we would like to invite anyone that can contribute to join us.

Activity

  1. added
    agenda+
    on Sep 26, 2025
  2. foolip commented on Oct 2, 2025

    @foolip
    Member

    I'd like to give an update on whatwg/html-build#297, but we don't have the agenda+ label in that repo.

  3. sideshowbarker commented on Oct 2, 2025

    @sideshowbarker
    Member

    I'd like to give an update on whatwg/html-build#297, but we don't have the agenda+ label in that repo.

    I've created an agenda+ label there now, and added it to that issue

  4. foolip commented on Oct 2, 2025

    @foolip
    Member
  5. cwilso commented on Oct 3, 2025

    @cwilso
    ContributorAuthor

    Next meeting is at #11747.

    Minutes:

    #4702

    Luke: MathML uses a HTMLOrForeignElement mixin that doesn’t exist in HTML. #4702 as a few blockers. The main one is tabindex. Seems like there’s no consensus on <a> elements in MathML.

    Anne: I asked for a more specific name. Is everything implemented?

    Luke: The default value for tabIndex might be different between browsers.

    w3c/mathml-core#142

    Simon: I think we should add an <a> element to MathML so that it’s consistent between HTML/SVG/MathML.

    Anne: What about existing content?

    Simon: The links don’t work in Chromium or WebKit.

    Olli: Looking at WebKit it seems like it’s trying to support links.

    Luke: The connection to the mixin is that it affects whether tabIndex is 0 or -1. Always returning -1 for MathML would make sense.

    Anne: Is there a plan to define the content and IDL attributes?

    Simon: https://svgwg.org/svg2-draft/struct.html#tabindexattribute , https://w3c.github.io/mathml-core/#dfn-tabindex

    Noam: There’s something for SVG <a> in https://html.spec.whatwg.org/#dom-tabindex

    Philip: https://github.com/w3c/webref/blob/main/ed/idlpatches/mathml-core.idl.patch shows that the only change in MathML needed for the IDL to all make sense together is the rename

    Philip: Sounds like “all” that’s needed is to do all of the work?

    Luke: If we add <a>, would it be MathMLAnchorElement or MathMLAElement? I’ll let Brian know there’s consensus to proceed then.

    #11560

    Simon: I’d like to move forward with what bzbarsky suggested a long time ago. Rather than an opt-in we’ll make an opt-out, for web compat. Web sites depend on ancestorOrigins. Looking for a signal from Chromium that the change is OK.

    Philip: Is there a summary of what the changes are?

    Simon: I can write a short summary.

    Noam: I will take an AI to find someone to review this.

    whatwg/html-build#297

    Philip: working on a script to see if we can move HTML build to bikeshed. Worked with Tab about this. Biggest issue is perf. Was able to get it from 30s to 10s. Not as fast as Wattsi but still fast. Will have to give up Markdown support - that took us long time. Some other things like syntax highlighting. Seems like there is a path to turn off enough things to make it fast. The result would more like the DOM spec that doesn’t use much bikeshed-isms with Markdown/bullet-lists. Still work to do. Would this be a net win? Like a bikeshed subset that’s fast enough for HTML?

    Anne: does it do everything that WATTSI does? Some other things were added to WATTSI recently.

    Philip: goal is to compare with a diffing script. E.g. MDN panels. We’ll find missing features when we get to that point. First focusing on performance and asking about value. BS cannot work with links inside IDL blocks. E.g. links to obsolete members. I’m sure there is more differences

    Keith: HTML5 parser step taking 14s seems like an eternity. Still a perf gap on the table.
    Philip: lxml takes 0s.
    Keith: can you send out some slow path and see if we could help
    Philip: absolutely.
    Simon: can we use some AI tool to make the conversion?
    Keith: I am pretty sure this was raised before.
    Foolip: Tab does want to rewrite everything in rust. The main thing is combine the different parser passes
    That’s going to take a long time.
    Keith: it’s not difficult to do multi-platform bits in rust. A temporary hit is fine. Perf should not be a blocker as long as its not huge.
    Philip: I think we should make the switch and it gives us a path forward.
    Keith: we could probably implement MD parsing in Rust and use ABI, with small wins etc
    Philip: I think there’s lots of unneeded work, like line numbers for errors.
    Anne: It is important that we test errors in the end

    Noam: So is there agreement that this is valuable?
    Luke: I think so. All of the efforts in this direction are great.

    Simon: On error reporting, I find that dumping some context that you can search for is a good alternative.

    Philip: Excellent. So I will switch from performance to correctness and landing a --bikeshed mode in html-build that I can demo at TPAC.

    #11669

    Noam: As requested, tried to put together a coherent story of how all HTML parsing methods should work. I started out with very few methods but now have 24 permutations of safe/unsafe, sync/streaming, and the insertion modes. Script execution is also a discussion topic. innerHTML marks scripts as already executed, while createContextualFragment clears that flag. In Chromium that’s a parser setting, and we could go in either direction. So far my sense is that streaming functions should not mark scripts as already started, because that’s a side effect of not streaming (moving things from a fragment to the document). Also, AFAICT, it’s not possible to write synchronously to a stream and have the script execute within that write. So this felt simpler than having another permutation for scripting.

    Simon: Seems OK to execute scripts and not have a toggle for it, the sanitizer could filter them out instead. I think the main reason innerHTML does that is because it’s a setter and people append to innerHTML which would insert the script again.
    Anne: Also it’s parsed into a fragment with innerHTML.

    Anne: How does streaming work with the sanitizer? The script would end up executing before the sanitizer, it operates after tree creation.
    Simon: We’d need to change that so sanitization happens before insertion.
    Anne: The way the sanitizer currently works is it gets a tree and returns a mutated tree. To prevent scripts from executing it would need a much lower level integration with the parser.

    Noam: How does the sanitizer work with insertAdjacentHTML? It doesn't?
    Anne: Right, it’s with setHTML. Having the sanitizer integrate with the parser seems more fragile.

    Noam: When sanitizing untrusted HTML you probably don’t want it to run HTML?
    Anne: Unclear, it’s more of a generic filtering API. It’s designed to work with both setHTML and setHTMLUnsafe.

    https://wicg.github.io/sanitizer-api/

    Simon: So we should clarify the streaming situation. The impression last time was that we thought it would be possible without fundamental changes to the Sanitizer API.

    Anne: Maybe the model should be around insertion, to have a hook there. But the idea is that if you drop an element you also drop all of its children. That might be tricky with streaming.

    Luke: If there’s an element on the stack of open elements and it’s removed, won’t the parser be in a confused state?
    Simon: I think the parser does the right thing if you remove an element while its children are being parsed.

    Noam: High level, how do people feel about having multiple methods and no flag for script execution?
    Anne: I’m not sure about script execution. It would be an inconsistency between the APIs.
    Noam: Yes, it’s a matter of what we’re being consistent with. createContextualFragment and document.write() do execute scripts.
    Anne: Since it’s a family of methods it would make sense if they operate in the same way and don’t depend on the type.
    Noam: The other alternative is to have a dictionary option.
    Luke: My leaning would be towards not executing scripts with these methods, as long as there’s a way to execute the script with scripts afterwards.
    Anne: FWIW, I think having runScripts for the unsafe methods is fine.
    Simon: +1
    Luke: I do have concerns about the large number of methods, documenting and teaching those. I think for insert before/after, that should just be an option.
    Anne: I thought that developers prefer many methods. But I could be wrong.

    Luke: Is it a problem that TT would run JS and can change everything?
    Olli: I think in this case it’s not the same kind of problem because it’s streaming.

  6. removed
    agenda+
    on Oct 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions