Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does any browser still implement namespace-based dispatching? #2656

Closed
annevk opened this issue May 10, 2017 · 7 comments
Closed

Does any browser still implement namespace-based dispatching? #2656

annevk opened this issue May 10, 2017 · 7 comments

Comments

@annevk
Copy link
Member

annevk commented May 10, 2017

In process a navigate response:

If [the XML document] section determines that the content is not to be displayed as a generic XML document, then proceed to the next step in this overall set of steps.

In the XML document section:

User agents may examine the namespace of the root Element node of this Document object to perform namespace-based dispatch to alternative processing tools, e.g. determining that the content is actually a syndication feed and passing it to a feed handler. If such processing is to take place, abort the steps in this section, and jump to the next step (labeled non-document content) in the navigate steps above.

While the jumping around is by itself worthy of a fix, I'm wondering whether any browser actually does this kind of namespace-based dispatching.

And if such namespace-based dispatching is to take place, should we really do it by creating a document first or just running the XML parser for a bit until we find an element?

@annevk
Copy link
Member Author

annevk commented May 10, 2017

If we fix #2657 this might be less problematic. We just end up generating a garbage document and potentially a garbage window.

@annevk
Copy link
Member Author

annevk commented May 12, 2017

It also seems this would require waiting for a root element to be found, which can potentially be a long time, before switching from the old to the new document. That seems problematic (and is not really accounted for event loop wise, as nothing says to go in parallel).

@annevk
Copy link
Member Author

annevk commented Feb 18, 2019

cc @hsivonen @tkent-google @cdumez

@tkent-google
Copy link
Collaborator

I don't think Blink has the namespace dispatch.

annevk added a commit that referenced this issue Feb 21, 2019
It's not implemented and complicates navigation.

Closes #2656.
@domenic
Copy link
Member

domenic commented Feb 21, 2019

Firefox used to do this with RSS documents, I think? Before removing native RSS support. Could someone confirm it doesn't do it with any other types of XML documents?

It'd be ideal to get Safari to weigh in as well, just in case.

@Yay295
Copy link
Contributor

Yay295 commented Feb 22, 2019

I think Waterfox still suports RSS, so @MrAlex94 might know about that.

@annevk
Copy link
Member Author

annevk commented Feb 22, 2019

I did ask in Mozilla's #content IRC channel and peterv suggested Firefox doesn't have this.

domenic pushed a commit that referenced this issue Feb 26, 2019
It's not implemented and complicates navigation.

Closes #2656.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

4 participants