Skip to content

Interoperability of 'The indicated part of the document' for HTML documents #2902

@tkent-google

Description

@tkent-google

Spec: https://html.spec.whatwg.org/multipage/browsing-the-web.html#scroll-to-fragid:the-indicated-part-of-the-document-6
Test: http://w3c-test.org/html/browsers/browsing-the-web/scroll-to-fragid/

In the current specification, a rough algorithm to find "the indicated part of the document" for HTML documents is like:

  1. Search IDs for decoded fragid
  2. Search names for not-decoded fragid

However, it doesn't match to none of Chrome, Edge, Firefox, and Safari.

Chrome and Safari:

  1. Search IDs for not-decoded fragid
  2. Search names for not-decoded fragid
  3. Search IDs for decoded fragid
  4. Search names for decoded fragid

Firefox:

  1. Search IDs for decoded fragid
  2. Search decoded names for decoded fragid

Edge:

  1. Search IDs for decoded fragid
  2. Search names for decoded fragid
    (Note that Edge has different behavior in http: and file:.)

I hesitate to make Google Chrome match to the specification because it would introduce yet another incompatible implementation.

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