Comments (3)
My instinct here is that the test and Chromium's implementation is wrong, and we should update them. I cannot find any evidence of this being intentional.
from html.
My instinct here is that the test and Chromium's implementation is wrong, and we should update them. I cannot find any evidence of this being intentional.
That plan would align well with WebKit's current implementation.
from html.
I started working on this and then I had second thoughts. I think this might have been intentional after all.
The original explainer states:
hashChange: a boolean, indicating whether or not this is a same-document fragment navigation.
Additionally, a large amount of example code does stuff like
navigation.addEventListener("navigate", e => {
if (e.hashChange) {
// Assume this is the user clicking on a fragment link and ignore it.
return;
}
// Otherwise, process this with navigation interception.
});
I think changing how such code reacts to history.pushState("/#fragment")
might cause compat problems. Worse, I think it might make it harder for people to write nice apps that use the navigation API.
So now I am thinking we should update the spec to match Chromium's behavior and the tests... I am open to being persuaded otherwise, especially by web developers with experience using the navigation API. But I'll tentatively proceed with a spec patch.
from html.
Related Issues (20)
- The order in which custom element callbacks are called does not match implementations
- `insertAdjacentHTML` and related methods should rethrow error after invoking "Get Trusted Type compliant string" HOT 3
- structuredClone into (Shared) ArrayBuffer HOT 7
- Import HTML HOT 2
- Upcoming WHATNOT meeting on 2024-07-18 HOT 3
- Make an exhaustive list of incompatibilties with SGML HOT 2
- Provide some way of changing an elements location in the DOM tree without triggering connect/disconnect CEReactions
- Redundant step for button in body HOT 1
- "Fragment serializing algorithm" outputs node itself instead of its contents for elements in non-HTML documents HOT 1
- HTMLOptionsCollection index replacement seems inconsistent HOT 1
- Static checker for the spec? HOT 5
- Meeting 4 for joint OpenUI-WHATWG/HTML-CSSWG task force on styleable form controls HOT 2
- Extend current slot beyond shadow-DOM or create a new slot like element
- Auto directionality of slot behaves different than for other elements HOT 1
- VideoFrame is missing from the "not origin-clean" definition for CanvasImageSource HOT 2
- Should orientation metadata (such as exif) be used when drawing HTMLImageElements/SVGImageElements to canvas? HOT 4
- createPattern does not define how to resolve images without defined natural dimensions (e.g. some SVG images) HOT 2
- Upcoming WHATNOT meeting on 2024-07-25 HOT 5
- Toggle (show/hide) button HOT 6
- The dialog tag open has a black border HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from html.