Make HTML's html-dfn.js work#180
Conversation
Corresponding HTML PR: whatwg/html#12523.
|
@tobie let me know if this seems reasonable or if you'd approach this differently. (I used Claude to make this.) |
|
Thanks for the PR. Could you explain what the intent is? I'm not sure I entirely understand the problem this is trying to solve. Admittedly, I haven't looked at that code base for a while. |
|
Oh oops. The HTML standard uses Then:
If we only fixed 2 we would not get back-references for newly-added definitions, which is why I'm attempting a fix here. |
|
What is the rationale for rewriting the file paths rather than making them relative? |
|
We use this for both single-page and multi-page. There's not a relative path that works for both. That's why I kept the logic in PR Preview. An alternative would be having PR Preview invoke Wattsi in a specific way perhaps and make that influence the output somehow. This seemed the most straightforward. |
|
This feels brittle and hacky, but as you’re the only consumer of the Wattsi codenpath, if you’re fine with it, I don’t have any objections. |
Corresponding HTML PR: whatwg/html#12523.